Skip to content

Commit

Permalink
Merge pull request #63 from creative-commoners/pulls/2/sapphire-test-…
Browse files Browse the repository at this point in the history
…nine

API phpunit 9 support
  • Loading branch information
Maxime Rainville authored Nov 1, 2021
2 parents 08fb151 + e536810 commit bb53e47
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
],
"require": {
"dragonmantank/cron-expression": "^3",
"silverstripe/framework": "^4",
"php": "^7.1 || ^8"
"silverstripe/framework": "^4.10",
"php": "^7.3 || ^8"
},
"require-dev": {
"sminnee/phpunit": "^5.7",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.0"
},
"extra": {
Expand Down
8 changes: 5 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<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">
Expand Down
2 changes: 1 addition & 1 deletion tests/CronTaskControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CronTaskControllerTest extends FunctionalTest
/**
* {@inheritDoc}
*/
protected function setUp()
protected function setUp(): void
{
parent::setUp();
CronTaskTest\TestCron::$times_run = 0;
Expand Down

0 comments on commit bb53e47

Please sign in to comment.