From 3a4c9d6fa0e2ea7d685dce99b528e3f21aa3ec8f Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 27 Oct 2021 17:48:12 +1300 Subject: [PATCH] API phpunit 9 support --- composer.json | 5 +++-- tests/Transformer/PrivateStaticTransformerTest.php | 2 +- tests/Transformer/YamlTransformerTest.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 3d786d1..25ae643 100644 --- a/composer.json +++ b/composer.json @@ -7,10 +7,11 @@ "symfony/yaml": "^2.8 || ^3.2 || ^4", "marcj/topsort": "^1 || ^2", "psr/simple-cache": "^1.0", - "php": "^7.1 || ^8" + "php": "^7.3 || ^8.0" }, "require-dev": { - "sminnee/phpunit": "^5.7.29", + "silverstripe/framework": "^4.10", + "phpunit/phpunit": "^9.5", "mikey179/vfsstream": "^1.6" }, "autoload": { diff --git a/tests/Transformer/PrivateStaticTransformerTest.php b/tests/Transformer/PrivateStaticTransformerTest.php index 99e668b..1755add 100644 --- a/tests/Transformer/PrivateStaticTransformerTest.php +++ b/tests/Transformer/PrivateStaticTransformerTest.php @@ -97,7 +97,7 @@ public function testInvalidClass() public function testInvalidConfigError() { - $this->expectException(LogicException::class); + $this->expectException(\LogicException::class); $this->expectExceptionMessage( ClassL::class . '::option is not private but overrides a private static ' . 'config in parent class ' . ClassK::class diff --git a/tests/Transformer/YamlTransformerTest.php b/tests/Transformer/YamlTransformerTest.php index 7af5139..b8bd587 100644 --- a/tests/Transformer/YamlTransformerTest.php +++ b/tests/Transformer/YamlTransformerTest.php @@ -26,7 +26,7 @@ class YamlTransformerTest extends TestCase */ protected $root; - protected function setUp() + protected function setUp(): void { $this->root = vfsStream::setup(); }