From c1a3e64bfacc0ed2e17753beda25dd98d25efa11 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Thu, 14 Nov 2019 12:05:10 -0500 Subject: [PATCH] Fix new tests to work with PHPUnit 8 --- tests/cases/Service/TestSerial.php | 2 +- tests/cases/Service/TestSubprocess.php | 2 +- tests/cases/TestArsse.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/cases/Service/TestSerial.php b/tests/cases/Service/TestSerial.php index 5a960788..73381374 100644 --- a/tests/cases/Service/TestSerial.php +++ b/tests/cases/Service/TestSerial.php @@ -13,7 +13,7 @@ use JKingWeb\Arsse\Service\Serial\Driver; /** @covers \JKingWeb\Arsse\Service\Serial\Driver */ class TestSerial extends \JKingWeb\Arsse\Test\AbstractTest { - public function setUp() { + public function setUp(): void { self::clearData(); self::setConf(); Arsse::$db = \Phake::mock(Database::class); diff --git a/tests/cases/Service/TestSubprocess.php b/tests/cases/Service/TestSubprocess.php index c02c4b26..332b4544 100644 --- a/tests/cases/Service/TestSubprocess.php +++ b/tests/cases/Service/TestSubprocess.php @@ -13,7 +13,7 @@ use JKingWeb\Arsse\Service\Subprocess\Driver; /** @covers \JKingWeb\Arsse\Service\Subprocess\Driver */ class TestSubprocess extends \JKingWeb\Arsse\Test\AbstractTest { - public function setUp() { + public function setUp(): void { self::clearData(); self::setConf(); } diff --git a/tests/cases/TestArsse.php b/tests/cases/TestArsse.php index f28e7ee8..9fbe0821 100644 --- a/tests/cases/TestArsse.php +++ b/tests/cases/TestArsse.php @@ -15,10 +15,10 @@ use JKingWeb\Arsse\Service; /** @covers \JKingWeb\Arsse\Arsse */ class TestArsse extends \JKingWeb\Arsse\Test\AbstractTest { - public function setUp() { + public function setUp(): void { self::clearData(false); } - public function tearDown() { + public function tearDown(): void { self::clearData(); }