mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix CS
This commit is contained in:
parent
52967c32cf
commit
40800df6bd
22 changed files with 72 additions and 79 deletions
|
@ -123,7 +123,7 @@ class AllFunctionalTest extends TestCase
|
|||
$expected = $testData['EXPECT'];
|
||||
|
||||
$line = 1;
|
||||
for ($i = 0, $j = 0; $i < strlen($expected); ) {
|
||||
for ($i = 0, $j = 0; $i < strlen($expected);) {
|
||||
if ($expected[$i] === "\n") {
|
||||
$line++;
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ class AllFunctionalTest extends TestCase
|
|||
} else {
|
||||
$this->fail(
|
||||
'Failed to match pattern '.$regex.' at line '.$line.' / abs offset '.$i.': '
|
||||
.substr($output, $j, min(strpos($output, "\n", $j)-$j, 100)).PHP_EOL.PHP_EOL.
|
||||
.substr($output, $j, min(strpos($output, "\n", $j) - $j, 100)).PHP_EOL.PHP_EOL.
|
||||
'Output:'.PHP_EOL.$output
|
||||
);
|
||||
}
|
||||
|
@ -146,8 +146,8 @@ class AllFunctionalTest extends TestCase
|
|||
if ($expected[$i] !== $output[$j]) {
|
||||
$this->fail(
|
||||
'Output does not match expectation at line '.$line.' / abs offset '.$i.': '.PHP_EOL
|
||||
.'-'.substr($expected, $i, min(strpos($expected, "\n", $i)-$i, 100)).PHP_EOL
|
||||
.'+'.substr($output, $j, min(strpos($output, "\n", $j)-$j, 100)).PHP_EOL.PHP_EOL
|
||||
.'-'.substr($expected, $i, min(strpos($expected, "\n", $i) - $i, 100)).PHP_EOL
|
||||
.'+'.substr($output, $j, min(strpos($output, "\n", $j) - $j, 100)).PHP_EOL.PHP_EOL
|
||||
.'Output:'.PHP_EOL.$output
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue