Skip to content

Commit

Permalink
API phpunit 9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Oct 27, 2021
1 parent baee472 commit 2671406
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
8 changes: 2 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
}
],
"require": {
"php": "^7.3 || ^8.0",
"silverstripe/cms": "^4",
"silverstripe/versioned": "^1",
"silverstripe/siteconfig": "^4"
},
"require-dev": {
"sminnee/phpunit": "^5.7",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.0"
},
"autoload": {
Expand All @@ -30,11 +31,6 @@
"SilverStripe\\VersionFeed\\Tests\\": "tests/"
}
},
"extra": {
"branch-alias": {
"dev-master": "2.x-dev"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
8 changes: 5 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
4 changes: 2 additions & 2 deletions tests/VersionFeedFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class VersionFeedFunctionalTest extends FunctionalTest
*/
protected $cache;

protected function setUp()
protected function setUp(): void
{
Director::config()->set('alternate_base_url', $this->baseURI);

Expand Down Expand Up @@ -64,7 +64,7 @@ protected function setUp()
Versioned::set_reading_mode(Versioned::DEFAULT_MODE);
}

protected function tearDown()
protected function tearDown(): void
{
Director::config()->set('alternate_base_url', null);

Expand Down

0 comments on commit 2671406

Please sign in to comment.