From 9e1d4f26c9d5270bd38e079aff8221b4311057e9 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Fri, 6 Oct 2023 23:12:09 +0200 Subject: [PATCH] fix CsvStreamParserTest tests --- tests/CsvParserTest.php | 3 +++ tests/CsvStreamParserTest.php | 10 ++++------ tests/CsvTest.php | 5 ----- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/tests/CsvParserTest.php b/tests/CsvParserTest.php index eab1d3e..9680ea5 100644 --- a/tests/CsvParserTest.php +++ b/tests/CsvParserTest.php @@ -3,6 +3,9 @@ use Deblan\Csv\CsvParser; use PHPUnit\Framework\TestCase; +/** + * @internal + */ class CsvParserTest extends TestCase { public function testGettersAndSettersAndDefaultValues() diff --git a/tests/CsvStreamParserTest.php b/tests/CsvStreamParserTest.php index 8a6fb8c..8c64b65 100644 --- a/tests/CsvStreamParserTest.php +++ b/tests/CsvStreamParserTest.php @@ -1,10 +1,8 @@ assertEquals([ 'FOO', - 'BAR' + 'BAR', ], $parser->getData()); $this->assertEquals([ [ 'FOO', - 'BAR' - ] + 'BAR', + ], ], $parser->getDatas()); $this->assertEquals([], $parser->getHeaders()); diff --git a/tests/CsvTest.php b/tests/CsvTest.php index ebea607..3175b76 100644 --- a/tests/CsvTest.php +++ b/tests/CsvTest.php @@ -3,11 +3,6 @@ use Deblan\Csv\Csv; use PHPUnit\Framework\TestCase; -/** - * class CsvTest. - * - * @author Simon Vieille - */ class CsvTest extends TestCase { public function testGettersAndSettersAndDefaultValues()