diff options
Diffstat (limited to 'tests/CacheImplementationTest.php')
-rw-r--r-- | tests/CacheImplementationTest.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/CacheImplementationTest.php b/tests/CacheImplementationTest.php index 7eb1af51..25189134 100644 --- a/tests/CacheImplementationTest.php +++ b/tests/CacheImplementationTest.php @@ -5,7 +5,6 @@ use PHPUnit\Framework\TestCase; class CacheImplementationTest extends TestCase { private $class; - private $obj; /** * @dataProvider dataCachesProvider @@ -22,7 +21,7 @@ class CacheImplementationTest extends TestCase { */ public function testClassType($path) { $this->setCache($path); - $this->assertInstanceOf(CacheInterface::class, $this->obj); + $this->assertTrue(is_subclass_of($this->class, CacheInterface::class), 'class must be subclass of CacheInterface'); } //////////////////////////////////////////////////////////////////////////// @@ -39,6 +38,5 @@ class CacheImplementationTest extends TestCase { require_once $path; $this->class = basename($path, '.php'); $this->assertTrue(class_exists($this->class), 'class ' . $this->class . ' doesn\'t exist'); - $this->obj = new $this->class(); } } |