minor #36756 [3.4] CS fixes (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[3.4] CS fixes

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Commits
-------

02b378f248 [3.4] CS fixes
This commit is contained in:
Nicolas Grekas 2020-05-08 12:53:15 +02:00
commit 1e1060f2eb
3 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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');

View File

@ -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));
}