mirror of
https://github.com/silverstripe/silverstripe-testsession
synced 2024-10-22 14:06:00 +02:00
Merge pull request #71 from dhensby/pulls/5/phpunit-8
Add PHPUnit 8 support
This commit is contained in:
commit
c8344b2325
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/vendor/
|
@ -18,6 +18,9 @@
|
||||
"silverstripe/framework": "^5",
|
||||
"silverstripe/vendor-plugin": "^1.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^8 || ^9"
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.x-dev"
|
||||
@ -35,5 +38,6 @@
|
||||
"SilverStripe\\TestSession\\Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"minimum-stability": "dev"
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true
|
||||
}
|
||||
|
@ -4,6 +4,7 @@ namespace SilverStripe\TestSession\Tests\Unit;
|
||||
|
||||
use DateTime;
|
||||
use LogicException;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use SilverStripe\Control\Director;
|
||||
use SilverStripe\Control\Email\Mailer;
|
||||
use SilverStripe\Control\HTTPRequest;
|
||||
@ -22,13 +23,13 @@ use SilverStripe\Core\Config\Config;
|
||||
class TestSessionControllerTest extends SapphireTest
|
||||
{
|
||||
/**
|
||||
* @var TestSessionEnvironment|PHPUnit_Framework_MockObject_MockObject
|
||||
* @var TestSessionEnvironment|MockObject
|
||||
*/
|
||||
private $testSessionEnvironment;
|
||||
|
||||
protected $usesDatabase = true;
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp() : void
|
||||
{
|
||||
parent::setUp();
|
||||
Injector::inst()->unregisterNamedObject(TestSessionEnvironment::class);
|
||||
|
@ -18,7 +18,7 @@ use stdClass;
|
||||
class TestSessionEnvironmentTest extends SapphireTest
|
||||
{
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp() : void
|
||||
{
|
||||
parent::setUp();
|
||||
Injector::inst()->unregisterNamedObject(TestSessionEnvironment::class);
|
||||
|
@ -23,7 +23,7 @@ class TestSessionHTTPMiddlewareTest extends SapphireTest
|
||||
|
||||
protected $usesDatabase = true;
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp() : void
|
||||
{
|
||||
parent::setUp();
|
||||
Injector::inst()->registerService(
|
||||
|
Loading…
Reference in New Issue
Block a user