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 Deblan\Csv\CsvParser;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
class CsvParserTest extends TestCase
|
class CsvParserTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testGettersAndSettersAndDefaultValues()
|
public function testGettersAndSettersAndDefaultValues()
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Deblan\Csv\CsvParser;
|
|
||||||
use PHPUnit\Framework\TestCase;
|
|
||||||
use Deblan\Csv\CsvStreamParser;
|
use Deblan\Csv\CsvStreamParser;
|
||||||
|
|
||||||
class CsvParserParserTest extends CsvParserTest
|
class CsvStreamParserTest extends CsvParserTest
|
||||||
{
|
{
|
||||||
public function testStreamParser()
|
public function testStreamParser()
|
||||||
{
|
{
|
||||||
|
@ -101,13 +99,13 @@ class CsvParserParserTest extends CsvParserTest
|
||||||
|
|
||||||
$this->assertEquals([
|
$this->assertEquals([
|
||||||
'FOO',
|
'FOO',
|
||||||
'BAR'
|
'BAR',
|
||||||
], $parser->getData());
|
], $parser->getData());
|
||||||
$this->assertEquals([
|
$this->assertEquals([
|
||||||
[
|
[
|
||||||
'FOO',
|
'FOO',
|
||||||
'BAR'
|
'BAR',
|
||||||
]
|
],
|
||||||
], $parser->getDatas());
|
], $parser->getDatas());
|
||||||
$this->assertEquals([], $parser->getHeaders());
|
$this->assertEquals([], $parser->getHeaders());
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,6 @@
|
||||||
use Deblan\Csv\Csv;
|
use Deblan\Csv\Csv;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
/**
|
|
||||||
* class CsvTest.
|
|
||||||
*
|
|
||||||
* @author Simon Vieille <simon@deblan.fr>
|
|
||||||
*/
|
|
||||||
class CsvTest extends TestCase
|
class CsvTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testGettersAndSettersAndDefaultValues()
|
public function testGettersAndSettersAndDefaultValues()
|
||||||
|
|
Loading…
Reference in a new issue