fix CsvStreamParserTest tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
a5f4b5696a
commit
9e1d4f26c9
|
@ -3,6 +3,9 @@
|
|||
use Deblan\Csv\CsvParser;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
class CsvParserTest extends TestCase
|
||||
{
|
||||
public function testGettersAndSettersAndDefaultValues()
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
<?php
|
||||
|
||||
use Deblan\Csv\CsvParser;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Deblan\Csv\CsvStreamParser;
|
||||
|
||||
class CsvParserParserTest extends CsvParserTest
|
||||
class CsvStreamParserTest extends CsvParserTest
|
||||
{
|
||||
public function testStreamParser()
|
||||
{
|
||||
|
@ -101,13 +99,13 @@ class CsvParserParserTest extends CsvParserTest
|
|||
|
||||
$this->assertEquals([
|
||||
'FOO',
|
||||
'BAR'
|
||||
'BAR',
|
||||
], $parser->getData());
|
||||
$this->assertEquals([
|
||||
[
|
||||
'FOO',
|
||||
'BAR'
|
||||
]
|
||||
'BAR',
|
||||
],
|
||||
], $parser->getDatas());
|
||||
$this->assertEquals([], $parser->getHeaders());
|
||||
|
||||
|
|
|
@ -3,11 +3,6 @@
|
|||
use Deblan\Csv\Csv;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* class CsvTest.
|
||||
*
|
||||
* @author Simon Vieille <simon@deblan.fr>
|
||||
*/
|
||||
class CsvTest extends TestCase
|
||||
{
|
||||
public function testGettersAndSettersAndDefaultValues()
|
||||
|
|
Loading…
Reference in a new issue