Skip to content

Commit 2cd1be4

Browse files
committed
Refactor test class hierarchy and naming.
Renamed `MainTest` to `TestBase` and made it abstract to better reflect its role as a base class. Updated derived test classes (`CachePSR16MainTest` and `CachePSR6MainTest`) to extend `TestBase` and renamed them for consistency.
1 parent 14ef343 commit 2cd1be4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/CachePSR16MainTest.php renamed to tests/CachePSR16Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use ByJG\Cache\Psr16\NoCacheEngine;
1010
use PHPUnit\Framework\Attributes\DataProvider;
1111

12-
class CachePSR16MainTest extends MainTest
12+
class CachePSR16Test extends TestBase
1313
{
1414
/**
1515
* @param BaseCacheEngine $cacheEngine

tests/CachePSR6MainTest.php renamed to tests/CachePSR6Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use PHPUnit\Framework\Attributes\DataProvider;
99
use Psr\SimpleCache\InvalidArgumentException;
1010

11-
class CachePSR6MainTest extends MainTest
11+
class CachePSR6Test extends TestBase
1212
{
1313
/**
1414
* @param BaseCacheEngine $cacheEngine

tests/MainTest.php renamed to tests/TestBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use ByJG\Cache\Psr16\TmpfsCacheEngine;
1414
use PHPUnit\Framework\TestCase;
1515

16-
class MainTest extends TestCase
16+
abstract class TestBase extends TestCase
1717
{
1818
/**
1919
* @var BaseCacheEngine|null

0 commit comments

Comments
 (0)