From ba9eae17d45212552b9c65c19884bcbc91214a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ul?= Date: Mon, 19 Feb 2018 23:00:57 +0100 Subject: [PATCH] Bootstrap: Improved the conditions under which the test wrapper loads --- tests/Bootstrap.php | 2 +- ...default_values_test.php => DefaultValuesPropertiesTest.php} | 3 ++- .../{worthless_test.php => PublicPropertiesTest.php} | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) rename tests/properties/{default_values_test.php => DefaultValuesPropertiesTest.php} (99%) rename tests/properties/{worthless_test.php => PublicPropertiesTest.php} (98%) diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index 797e5b4..3de63b4 100644 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -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'; } diff --git a/tests/properties/default_values_test.php b/tests/properties/DefaultValuesPropertiesTest.php similarity index 99% rename from tests/properties/default_values_test.php rename to tests/properties/DefaultValuesPropertiesTest.php index ab803b9..3e26f95 100644 --- a/tests/properties/default_values_test.php +++ b/tests/properties/DefaultValuesPropertiesTest.php @@ -1,8 +1,9 @@