Compare commits

..

No commits in common. "v3" and "master" have entirely different histories.
v3 ... master

4 changed files with 20 additions and 17 deletions

View file

@ -1,18 +1,17 @@
matrix:
PHP_VERSION:
- deblan/php:7.3
- deblan/php:7.4
- deblan/php:8.0
- deblan/php:8.1
- deblan/php:8.2
- 7.3
- 7.4
- 8.0
- 8.1
steps:
pipeline:
dependencies:
image: ${PHP_VERSION}
image: gitnet.fr/deblan/php:${PHP_VERSION}
commands:
- composer install
- composer require --dev phpunit/phpunit
- php /usr/local/bin/composer install
- php /usr/local/bin/composer require --dev phpunit/phpunit
tests:
image: ${PHP_VERSION}
image: gitnet.fr/deblan/php:${PHP_VERSION}
commands:
- php ./vendor/bin/phpunit

View file

@ -3,9 +3,6 @@
use Deblan\Csv\CsvParser;
use PHPUnit\Framework\TestCase;
/**
* @internal
*/
class CsvParserTest extends TestCase
{
public function testGettersAndSettersAndDefaultValues()

View file

@ -1,8 +1,10 @@
<?php
use Deblan\Csv\CsvParser;
use PHPUnit\Framework\TestCase;
use Deblan\Csv\CsvStreamParser;
class CsvStreamParserTest extends CsvParserTest
class CsvParserParserTest extends CsvParserTest
{
public function testStreamParser()
{
@ -99,13 +101,13 @@ class CsvStreamParserTest extends CsvParserTest
$this->assertEquals([
'FOO',
'BAR',
'BAR'
], $parser->getData());
$this->assertEquals([
[
'FOO',
'BAR',
],
'BAR'
]
], $parser->getDatas());
$this->assertEquals([], $parser->getHeaders());

View file

@ -3,6 +3,11 @@
use Deblan\Csv\Csv;
use PHPUnit\Framework\TestCase;
/**
* class CsvTest.
*
* @author Simon Vieille <simon@deblan.fr>
*/
class CsvTest extends TestCase
{
public function testGettersAndSettersAndDefaultValues()