mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
PHPUnit: made compatible with v6, which is now namespaced.
This commit is contained in:
@@ -4,3 +4,7 @@ $dir = realpath(__DIR__);
|
|||||||
defined('BASE') OR define('BASE', dirname($dir) . '/');
|
defined('BASE') OR define('BASE', dirname($dir) . '/');
|
||||||
|
|
||||||
require_once BASE . 'parsecsv.lib.php';
|
require_once BASE . 'parsecsv.lib.php';
|
||||||
|
|
||||||
|
if (class_exists('PHPUnit_Framework_TestCase')) {
|
||||||
|
require_once __DIR__ . '/PHPUnit_Framework_TestCase.inc.php';
|
||||||
|
}
|
||||||
|
|||||||
11
tests/PHPUnit_Framework_TestCase.inc.php
Normal file
11
tests/PHPUnit_Framework_TestCase.inc.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace PHPUnit\Framework;
|
||||||
|
|
||||||
|
// Only needed to keep unit test code compatible with older PHPUnit versions
|
||||||
|
|
||||||
|
/** @noinspection PhpUndefinedClassInspection */
|
||||||
|
/** @noinspection AutoloadingIssuesInspection */
|
||||||
|
class TestCase extends \PHPUnit_Framework_TestCase {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class construct_methods_Test extends PHPUnit_Framework_TestCase {
|
class construct_methods_Test extends PHPUnit\Framework\TestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CSV
|
* CSV
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class parse_test extends PHPUnit_Framework_TestCase {
|
class parse_test extends PHPUnit\Framework\TestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CSV
|
* CSV
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class default_values_properties_Test extends PHPUnit_Framework_TestCase {
|
class default_values_properties_Test extends PHPUnit\Framework\TestCase {
|
||||||
/**
|
/**
|
||||||
* CSV
|
* CSV
|
||||||
* The parseCSV object
|
* The parseCSV object
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class worthless_properties_Test extends PHPUnit_Framework_TestCase {
|
class worthless_properties_Test extends PHPUnit\Framework\TestCase {
|
||||||
/**
|
/**
|
||||||
* CSV
|
* CSV
|
||||||
* The parseCSV object
|
* The parseCSV object
|
||||||
|
|||||||
Reference in New Issue
Block a user