mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Merge pull request #5 from parsecsv/itexia-repair-tests
Repair tests (somewhat)
This commit is contained in:
@@ -9,6 +9,7 @@ php:
|
|||||||
- 5.4
|
- 5.4
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- phpunit --version
|
||||||
- phpunit --configuration tests/phpunit.xml
|
- phpunit --configuration tests/phpunit.xml
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ if (!file_exists('vendor/autoload.php')) {
|
|||||||
|
|
||||||
require __DIR__ . '/../vendor/autoload.php';
|
require __DIR__ . '/../vendor/autoload.php';
|
||||||
|
|
||||||
if (!class_exists('PHPUnit\Framework\TestCase')) {
|
if (!class_exists('PHPUnit\Framework\TestCase') && class_exists('PHPUnit_Framework_TestCase')) {
|
||||||
// we run on an older PHPUnit version without namespaces.
|
// we run on an older PHPUnit version without namespaces.
|
||||||
require_once __DIR__ . '/PHPUnit_Framework_TestCase.inc.php';
|
require_once __DIR__ . '/PHPUnit_Framework_TestCase.inc.php';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace ParseCsv\tests\properties;
|
namespace ParseCsv\tests\properties;
|
||||||
|
|
||||||
use ParseCsv\Csv;
|
use ParseCsv\Csv;
|
||||||
use PHPUnit_Framework_TestCase as TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class default_values_properties_Test extends TestCase {
|
class DefaultValuesPropertiesTest extends TestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CSV
|
* CSV
|
||||||
@@ -1,10 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace ParseCsv\tests\properties;
|
namespace ParseCsv\tests\properties;
|
||||||
|
|
||||||
use ParseCsv\Csv;
|
use ParseCsv\Csv;
|
||||||
use PHPUnit_Framework_TestCase as TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class DefaultValuesTest extends TestCase {
|
class PublicPropertiesTest extends TestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CSV
|
* CSV
|
||||||
Reference in New Issue
Block a user