diff --git a/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php b/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php index 85d0d36319..2dfb7a0a39 100644 --- a/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php @@ -148,7 +148,7 @@ class ExprBuilderTest extends TestCase /** * @dataProvider castToArrayValues */ - public function testcastToArrayExpression($configValue, $expectedValue) + public function testCastToArrayExpression($configValue, $expectedValue) { $test = $this->getTestBuilder() ->castToArray() diff --git a/src/Symfony/Component/Console/Tests/TerminalTest.php b/src/Symfony/Component/Console/Tests/TerminalTest.php index 546d2214c4..cc2632dd18 100644 --- a/src/Symfony/Component/Console/Tests/TerminalTest.php +++ b/src/Symfony/Component/Console/Tests/TerminalTest.php @@ -60,7 +60,7 @@ class TerminalTest extends TestCase $this->assertSame(60, $terminal->getHeight()); } - public function test_zero_values() + public function testZeroValues() { putenv('COLUMNS=0'); putenv('LINES=0'); diff --git a/src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php b/src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php index 38babded28..16263fa43a 100644 --- a/src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php +++ b/src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php @@ -51,7 +51,7 @@ class SemaphoreStoreTest extends AbstractStoreTest private function getOpenedSemaphores() { if ('Darwin' === PHP_OS) { - $lines = explode(PHP_EOL, trim(`ipcs -s`)); + $lines = explode(PHP_EOL, trim(shell_exec('ipcs -s'))); if (-1 === $start = array_search('Semaphores:', $lines)) { throw new \Exception('Failed to extract list of opened semaphores. Expected a Semaphore list, got '.implode(PHP_EOL, $lines)); } @@ -59,7 +59,7 @@ class SemaphoreStoreTest extends AbstractStoreTest return \count(\array_slice($lines, ++$start)); } - $lines = explode(PHP_EOL, trim(`LC_ALL=C ipcs -su`)); + $lines = explode(PHP_EOL, trim(shell_exec('LC_ALL=C ipcs -su'))); if ('------ Semaphore Status --------' !== $lines[0]) { throw new \Exception('Failed to extract list of opened semaphores. Expected a Semaphore status, got '.implode(PHP_EOL, $lines)); }