From db1e242d0722fcf52c5467f7a42e8a08adac82ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ul?= Date: Sat, 25 Nov 2017 12:59:06 +0100 Subject: [PATCH] PHPUnit: made compatible with v6, which is now namespaced. --- tests/Bootstrap.php | 4 ++++ tests/PHPUnit_Framework_TestCase.inc.php | 11 +++++++++++ tests/methods/construct_test.php | 2 +- tests/methods/parse_test.php | 2 +- tests/properties/default_values_test.php | 2 +- tests/properties/worthless_test.php | 2 +- 6 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 tests/PHPUnit_Framework_TestCase.inc.php diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index 533c278..589745a 100644 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -4,3 +4,7 @@ $dir = realpath(__DIR__); defined('BASE') OR define('BASE', dirname($dir) . '/'); require_once BASE . 'parsecsv.lib.php'; + +if (class_exists('PHPUnit_Framework_TestCase')) { + require_once __DIR__ . '/PHPUnit_Framework_TestCase.inc.php'; +} diff --git a/tests/PHPUnit_Framework_TestCase.inc.php b/tests/PHPUnit_Framework_TestCase.inc.php new file mode 100644 index 0000000..56babef --- /dev/null +++ b/tests/PHPUnit_Framework_TestCase.inc.php @@ -0,0 +1,11 @@ +