From 0e2a1af855f24b1297512b088e4db3721097dde3 Mon Sep 17 00:00:00 2001 From: Nyholm Date: Mon, 18 Jan 2021 13:20:45 +0100 Subject: [PATCH] Fixes according to review --- composer.json | 2 +- tests/AssertTest.php | 5 +++-- tests/BaseTestCase.php | 12 ------------ 3 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 tests/BaseTestCase.php diff --git a/composer.json b/composer.json index 9e957a1b..f7cdb34c 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ } ], "require": { - "php": ">=7.2", + "php": "^7.2 || ^8.0", "symfony/polyfill-ctype": "^1.8" }, "conflict": { diff --git a/tests/AssertTest.php b/tests/AssertTest.php index 193112a2..2b90c67b 100644 --- a/tests/AssertTest.php +++ b/tests/AssertTest.php @@ -16,6 +16,7 @@ use Error; use Exception; use LogicException; +use PHPUnit\Framework\TestCase; use RuntimeException; use stdClass; use Webmozart\Assert\Assert; @@ -25,7 +26,7 @@ * * @author Bernhard Schussek */ -class AssertTest extends BaseTestCase +class AssertTest extends TestCase { private static $resource; @@ -422,7 +423,7 @@ public function getTests() // no tests for readable()/writable() for now array('classExists', array(__CLASS__), true), array('classExists', array(__NAMESPACE__.'\Foobar'), false), - array('subclassOf', array(__CLASS__, 'Webmozart\Assert\Tests\BaseTestCase'), true), + array('subclassOf', array(__CLASS__, 'PHPUnit\Framework\TestCase'), true), array('subclassOf', array(__CLASS__, 'stdClass'), false), array('interfaceExists', array('\Countable'), true), array('interfaceExists', array(__CLASS__), false), diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php deleted file mode 100644 index 2281e2ee..00000000 --- a/tests/BaseTestCase.php +++ /dev/null @@ -1,12 +0,0 @@ -