Skip to content

Commit 6841bb6

Browse files
Merge branch '4.4' into 5.0
* 4.4: [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 9e279cd + 008d32e commit 6841bb6

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)