Skip to content

Commit

Permalink
#109 Tests for OnMoon\OpenApiServerBundle\CodeGenerator\PhpParserGene…
Browse files Browse the repository at this point in the history
…rators\DtoCodeGenerator
  • Loading branch information
Alex2k committed Aug 27, 2020
1 parent 0244c18 commit 14fbcb2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ public function testGenerate(array $payload, string $expected): void

Assert::assertSame($definition, $generatedFileDefinition->getClass());
Assert::assertSame(
$expected,
preg_replace('/\r\n/', PHP_EOL, $generatedFileDefinition->getFileContents())
preg_replace('/\r\n|\r|\n/', PHP_EOL, $expected),
preg_replace('/\r\n|\r|\n/', PHP_EOL, $generatedFileDefinition->getFileContents())
);
}

Expand Down

0 comments on commit 14fbcb2

Please sign in to comment.