diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-21 16:40:38 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-27 13:34:41 +0100 |
commit | c007ca624f4a95e1a491221d425fcb2fa6e5589a (patch) | |
tree | b60aa133b438eb116ac3579283aa8a7967efd12b /tests/lib/TestCase.php | |
parent | e0f32814e33f9ebb8c42744611048cbfac1eb588 (diff) | |
download | nextcloud-server-c007ca624f4a95e1a491221d425fcb2fa6e5589a.tar.gz nextcloud-server-c007ca624f4a95e1a491221d425fcb2fa6e5589a.zip |
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/TestCase.php')
-rw-r--r-- | tests/lib/TestCase.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/TestCase.php b/tests/lib/TestCase.php index 96ee0f06f8c..b80e720efd3 100644 --- a/tests/lib/TestCase.php +++ b/tests/lib/TestCase.php @@ -108,7 +108,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase { }); } - protected function setUp() { + protected function setUp(): void { // overwrite the command bus with one we can run ourselves $this->commandBus = new QueueBus(); $this->overwriteService('AsyncCommandBus', $this->commandBus); @@ -134,7 +134,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase { } } - protected function onNotSuccessfulTest(\Throwable $t) { + protected function onNotSuccessfulTest(\Throwable $t): void { $this->restoreAllServices(); // restore database connection @@ -147,7 +147,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase { parent::onNotSuccessfulTest($t); } - protected function tearDown() { + protected function tearDown(): void { $this->restoreAllServices(); // restore database connection @@ -238,7 +238,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase { ); } - public static function tearDownAfterClass() { + public static function tearDownAfterClass(): void { if (!self::$wasDatabaseAllowed && self::$realDatabase !== null) { // in case an error is thrown in a test, PHPUnit jumps straight to tearDownAfterClass, // so we need the database again |