[3.4] CS fixes

This commit is contained in:
Nicolas Grekas 2020-05-08 12:38:31 +02:00
parent f6ae18e3ac
commit 02b378f248
3 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@ class ExprBuilderTest extends TestCase
/** /**
* @dataProvider castToArrayValues * @dataProvider castToArrayValues
*/ */
public function testcastToArrayExpression($configValue, $expectedValue) public function testCastToArrayExpression($configValue, $expectedValue)
{ {
$test = $this->getTestBuilder() $test = $this->getTestBuilder()
->castToArray() ->castToArray()

View File

@ -60,7 +60,7 @@ class TerminalTest extends TestCase
$this->assertSame(60, $terminal->getHeight()); $this->assertSame(60, $terminal->getHeight());
} }
public function test_zero_values() public function testZeroValues()
{ {
putenv('COLUMNS=0'); putenv('COLUMNS=0');
putenv('LINES=0'); putenv('LINES=0');

View File

@ -51,7 +51,7 @@ class SemaphoreStoreTest extends AbstractStoreTest
private function getOpenedSemaphores() private function getOpenedSemaphores()
{ {
if ('Darwin' === PHP_OS) { 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)) { 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)); 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)); 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]) { if ('------ Semaphore Status --------' !== $lines[0]) {
throw new \Exception('Failed to extract list of opened semaphores. Expected a Semaphore status, got '.implode(PHP_EOL, $lines)); throw new \Exception('Failed to extract list of opened semaphores. Expected a Semaphore status, got '.implode(PHP_EOL, $lines));
} }