diff options
author | 2019-02-24 12:04:27 +0100 | |
---|---|---|
committer | 2019-02-24 12:04:27 +0100 | |
commit | dc1b1b13cc39aae6d1e69b0633e0420ed91a5da4 (patch) | |
tree | baefada05a49ef69eec5201007e7a684eb8820fa /tests/CacheImplementationTest.php | |
parent | e3588f62bde583a335b0cfc024b7b7baba35db5c (diff) | |
download | rss-bridge-dc1b1b13cc39aae6d1e69b0633e0420ed91a5da4.tar.gz rss-bridge-dc1b1b13cc39aae6d1e69b0633e0420ed91a5da4.tar.zst rss-bridge-dc1b1b13cc39aae6d1e69b0633e0420ed91a5da4.zip |
[SQLiteCache] Implement cache based on SQLite 3 (#1035)
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(); } } |