1
0
mirror of https://github.com/DesignPatternsPHP/DesignPatternsPHP.git synced 2025-05-02 04:38:16 +02:00

Fixed the line break for Windows

Unit testing cannot pass here when using Windows
This commit is contained in:
Wilson_Yang 2019-02-24 16:13:57 +08:00 committed by GitHub
parent f6a9168c78
commit f9b4da7677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,7 +22,7 @@ class AbstractFactoryTest extends TestCase
$factory = new ParserFactory();
$parser = $factory->createCsvParser(CsvParser::OPTION_CONTAINS_NO_HEADER);
$result = $parser->parse("A0,A1,A2\nB0,B1,B2\nC0,C1,C2");
$result = $parser->parse("A0,A1,A2" . PHP_EOL . "B0,B1,B2" . PHP_EOL . "C0,C1,C2");
$this->assertEquals(
[
@ -39,7 +39,7 @@ class AbstractFactoryTest extends TestCase
$factory = new ParserFactory();
$parser = $factory->createCsvParser(CsvParser::OPTION_CONTAINS_HEADER);
$result = $parser->parse("A0,A1,A2\nB0,B1,B2\nC0,C1,C2");
$result = $parser->parse("A0,A1,A2" . PHP_EOL . "B0,B1,B2" . PHP_EOL . "C0,C1,C2");
$this->assertEquals(
[