Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | private function assertSameAllowingExtraNewLine(string $expectedValue, string $actualValue): void |
||
12 | { |
||
13 | // Depending on version of Command/CommandTester a PHP_EOL is added. |
||
14 | // In this context and extra PHP_EOL make no difference. Benefit of allowing both is a greater range of |
||
15 | // supported versions of Symfony/Command. |
||
16 | $validResults = [ |
||
17 | $expectedValue, |
||
18 | $expectedValue.\PHP_EOL, |
||
19 | ]; |
||
20 | |||
21 | Assert::assertTrue(in_array($actualValue, $validResults, true)); |
||
22 | } |
||
24 |