Compare commits
7 commits
Author | SHA1 | Date | |
---|---|---|---|
cba1744e99 | |||
9e1d4f26c9 | |||
a5f4b5696a | |||
9be70ae972 | |||
1203e23442 | |||
54c4ce47d7 | |||
c16b6524b1 |
|
@ -1,17 +1,18 @@
|
||||||
matrix:
|
matrix:
|
||||||
PHP_VERSION:
|
PHP_VERSION:
|
||||||
- 7.3
|
- deblan/php:7.3
|
||||||
- 7.4
|
- deblan/php:7.4
|
||||||
- 8.0
|
- deblan/php:8.0
|
||||||
- 8.1
|
- deblan/php:8.1
|
||||||
|
- deblan/php:8.2
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
dependencies:
|
dependencies:
|
||||||
image: gitnet.fr/deblan/php:${PHP_VERSION}
|
image: ${PHP_VERSION}
|
||||||
commands:
|
commands:
|
||||||
- php /usr/local/bin/composer install
|
- composer install
|
||||||
- php /usr/local/bin/composer require --dev phpunit/phpunit
|
- composer require --dev phpunit/phpunit
|
||||||
tests:
|
tests:
|
||||||
image: gitnet.fr/deblan/php:${PHP_VERSION}
|
image: ${PHP_VERSION}
|
||||||
commands:
|
commands:
|
||||||
- php ./vendor/bin/phpunit
|
- php ./vendor/bin/phpunit
|
||||||
|
|
|
@ -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