Skip to content

Commit

Permalink
fix: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Dec 5, 2023
1 parent 34dd551 commit 72ec0e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/CacheIncludeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 5 additions & 4 deletions tests/Configs/ArrayConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 72ec0e1

Please sign in to comment.