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: matrix:
PHP_VERSION: PHP_VERSION:
- deblan/php:7.3 - 7.3
- deblan/php:7.4 - 7.4
- deblan/php:8.0 - 8.0
- deblan/php:8.1 - 8.1
- deblan/php:8.2
steps: pipeline:
dependencies: dependencies:
image: ${PHP_VERSION} image: gitnet.fr/deblan/php:${PHP_VERSION}
commands: commands:
- composer install - php /usr/local/bin/composer install
- composer require --dev phpunit/phpunit - php /usr/local/bin/composer require --dev phpunit/phpunit
tests: tests:
image: ${PHP_VERSION} image: gitnet.fr/deblan/php:${PHP_VERSION}
commands: commands:
- php ./vendor/bin/phpunit - php ./vendor/bin/phpunit

View file

@ -3,9 +3,6 @@
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()

View file

@ -1,8 +1,10 @@
<?php <?php
use Deblan\Csv\CsvParser;
use PHPUnit\Framework\TestCase;
use Deblan\Csv\CsvStreamParser; use Deblan\Csv\CsvStreamParser;
class CsvStreamParserTest extends CsvParserTest class CsvParserParserTest extends CsvParserTest
{ {
public function testStreamParser() public function testStreamParser()
{ {
@ -99,13 +101,13 @@ class CsvStreamParserTest 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());

View file

@ -3,6 +3,11 @@
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()