API phpunit 9 support

This commit is contained in:
Steve Boyd 2021-10-27 18:06:53 +13:00
parent 40c96ce23f
commit fb9c340edb
3 changed files with 8 additions and 5 deletions

View File

@ -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": {

View File

@ -1,7 +1,9 @@
<phpunit bootstrap="vendor/silverstripe/cms/tests/bootstrap.php" colors="true">
<testsuite name="Default">
<directory>tests/</directory>
</testsuite>
<testsuites>
<testsuite name="Default">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/</directory>

View File

@ -22,7 +22,7 @@ class ExternalLinksTest extends SapphireTest
ExternalLinksTestPage::class
);
protected function setUp()
protected function setUp(): void
{
parent::setUp();