Skip to content

Commit

Permalink
Try to get Windows CI to agree on line offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
epdenouden authored and sebastianbergmann committed Jan 11, 2019
1 parent 9a8f8a3 commit 35dfa54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Runner/PhptTestCase.php
Expand Up @@ -655,7 +655,7 @@ private function getLocationHint(string $needle, array $sections, ?string $secti
$sectionOffset = $sections[$section . '_offset'] ?? 0;
$offset = $sectionOffset + 1;

$lines = \explode(\PHP_EOL, $sections[$section]);
$lines = \preg_split('/\r\n|\r|\n/', $sections[$section]);

foreach ($lines as $line) {
if (\strpos($line, $needle) !== false) {
Expand Down
Expand Up @@ -6,7 +6,6 @@ print "Nothing to see here, move along";
?>
--SKIPIF--
<?php
// Force skip by writing 'skip:' to STDOUT at the start a line
print "skip: something terrible happened\n";
?>
--EXPECT--
Expand Down

0 comments on commit 35dfa54

Please sign in to comment.