Compare commits

...

7 commits
master ... v3

Author SHA1 Message Date
Simon Vieille cba1744e99
add php8.2 tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-10-06 23:18:29 +02:00
Simon Vieille 9e1d4f26c9
fix CsvStreamParserTest tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-10-06 23:12:09 +02:00
Simon Vieille a5f4b5696a
update ci
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-10-06 22:58:46 +02:00
Simon Vieille 9be70ae972
fix ci syntax
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-09-29 16:00:14 +02:00
Simon Vieille 1203e23442
fix ci syntax 2023-09-29 15:59:35 +02:00
Simon Vieille 54c4ce47d7
fix ci syntax 2023-09-29 15:58:27 +02:00
Simon Vieille c16b6524b1
fix ci syntax 2023-09-29 15:57:56 +02:00
4 changed files with 17 additions and 20 deletions

View file

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

View file

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

View file

@ -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());

View file

@ -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()