From fb9c340edbfda5bfe0f92a50b7e1427a582b9026 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 27 Oct 2021 18:06:53 +1300 Subject: [PATCH] API phpunit 9 support --- composer.json | 3 ++- phpunit.xml.dist | 8 +++++--- tests/ExternalLinksTest.php | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index ec36bca..8b9bad9 100644 --- a/composer.json +++ b/composer.json @@ -11,10 +11,11 @@ } ], "require": { + "php": "^7.3 || ^8.0", "silverstripe/cms": "^4.0" }, "require-dev": { - "sminnee/phpunit": "^5.7", + "phpunit/phpunit": "^9.5", "squizlabs/php_codesniffer": "^3.0" }, "suggest": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index b543ea6..ab41986 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,7 +1,9 @@ - - tests/ - + + + tests/ + + src/ diff --git a/tests/ExternalLinksTest.php b/tests/ExternalLinksTest.php index b9014fd..bd7fe9f 100644 --- a/tests/ExternalLinksTest.php +++ b/tests/ExternalLinksTest.php @@ -22,7 +22,7 @@ class ExternalLinksTest extends SapphireTest ExternalLinksTestPage::class ); - protected function setUp() + protected function setUp(): void { parent::setUp();