mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-02 18:14:42 +02:00
[SQLiteCache] Implement cache based on SQLite 3 (#1035)
This commit is contained in:
parent
e3588f62bd
commit
dc1b1b13cc
2 changed files with 97 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue