Bootstrap: Improved the conditions under which the test wrapper loads

This commit is contained in:
Christian Bläul
2018-02-19 23:00:57 +01:00
parent 8f26ce6ea3
commit ba9eae17d4
3 changed files with 5 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ if (!file_exists('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.
require_once __DIR__ . '/PHPUnit_Framework_TestCase.inc.php';
}

View File

@@ -1,8 +1,9 @@
<?php
namespace ParseCsv\tests\properties;
use ParseCsv\Csv;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
class default_values_properties_Test extends TestCase {

View File

@@ -1,8 +1,9 @@
<?php
namespace ParseCsv\tests\properties;
use ParseCsv\Csv;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
class DefaultValuesTest extends TestCase {