Skip to content

Commit 6ca0440

Browse files
Merge branch '5.0'
* 5.0: [PhpUnitBridge] fix bad test [4.4] CS fixes [3.4] CS fixes Disable phpunit verbosity Queue name is a required parameter [FrameworkBundle] display actual target for error in AssetsInstallCommand Remove patches for Doctrine bugs and deprecations [Mime] fix bad method call on "EmailAddressContains" [DI][EventDispatcher] added contract for implementation
2 parents ae670bf + 6841bb6 commit 6ca0440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Store/SemaphoreStoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ public function testResourceRemoval()
4848
private function getOpenedSemaphores()
4949
{
5050
if ('Darwin' === PHP_OS) {
51-
$lines = explode(PHP_EOL, trim(`ipcs -s`));
51+
$lines = explode(PHP_EOL, trim(shell_exec('ipcs -s')));
5252
if (-1 === $start = array_search('Semaphores:', $lines)) {
5353
throw new \Exception('Failed to extract list of opened semaphores. Expected a Semaphore list, got '.implode(PHP_EOL, $lines));
5454
}
5555

5656
return \count(\array_slice($lines, ++$start));
5757
}
5858

59-
$lines = explode(PHP_EOL, trim(`LC_ALL=C ipcs -su`));
59+
$lines = explode(PHP_EOL, trim(shell_exec('LC_ALL=C ipcs -su')));
6060
if ('------ Semaphore Status --------' !== $lines[0]) {
6161
throw new \Exception('Failed to extract list of opened semaphores. Expected a Semaphore status, got '.implode(PHP_EOL, $lines));
6262
}

0 commit comments

Comments
 (0)