From 72ec0e1f988a98fc1ef0f1d345e766df696257e3 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 5 Dec 2023 16:55:04 +1300 Subject: [PATCH] fix: update tests --- tests/CacheIncludeTest.php | 2 +- tests/Configs/ArrayConfigTest.php | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/CacheIncludeTest.php b/tests/CacheIncludeTest.php index 1aee66b..639eeba 100644 --- a/tests/CacheIncludeTest.php +++ b/tests/CacheIncludeTest.php @@ -21,7 +21,7 @@ class CacheIncludeTest extends SapphireTest */ protected $keyCreatorMock; - protected function setUp() + protected function setUp(): void { Injector::inst()->registerService(new ArrayCache(), CacheInterface::class . '.CacheInclude'); $this->keyCreatorMock = $this->getMockBuilder(KeyCreatorInterface::class) diff --git a/tests/Configs/ArrayConfigTest.php b/tests/Configs/ArrayConfigTest.php index 4299226..9cac4f7 100644 --- a/tests/Configs/ArrayConfigTest.php +++ b/tests/Configs/ArrayConfigTest.php @@ -3,17 +3,18 @@ namespace Heyday\CacheInclude\Tests; use Heyday\CacheInclude\Configs\ArrayConfig; +use PHPUnit\Framework\TestCase; -class ArrayConfigTest extends \PHPUnit_Framework_TestCase +class ArrayConfigTest extends TestCase { protected $testData; - protected function setUp() + protected function setUp(): void { - $this->testData = array( + $this->testData = [ 'One', 'Two' - ); + ]; } protected function tearDown()