Skip to content

Commit c15463a

Browse files
committed
#104744
1 parent 014b22e commit c15463a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/ControllerParserTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@
9191
$parser->parse($namespace);
9292

9393
$content = $parser->getContentWithAdditionalMethods($additional, $namespaces);
94-
$result = trim(file_get_contents(__DIR__ . "/expects/Controllers/{$expect}.expect"));
9594

96-
expect($content)->toBe($result);
95+
$expectPathFile = __DIR__ . "/expects/Controllers/{$expect}.expect";
96+
$expectResult = implode("\n", file($expectPathFile, FILE_IGNORE_NEW_LINES));
97+
98+
expect($content)->toBe($expectResult);
9799

98100
expect($namespaces)->toBe($expectNamespaces);
99101
})->with([

0 commit comments

Comments
 (0)