Merge pull request #5 from parsecsv/itexia-repair-tests

Repair tests (somewhat)
This commit is contained in:
susgo
2018-02-20 08:22:59 +01:00
committed by GitHub
4 changed files with 8 additions and 5 deletions

View File

@@ -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:

View File

@@ -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';
} }

View File

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

View File

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