2016-04-07 12:34:57 -04:00
|
|
|
<?php
|
|
|
|
|
2016-04-08 14:25:45 -04:00
|
|
|
require_once('CacheDriverBase.php');
|
2016-04-07 12:34:57 -04:00
|
|
|
|
|
|
|
use Aviat\Ion\Friend;
|
|
|
|
use Aviat\Ion\Cache\Driver\SQLDriver;
|
|
|
|
|
|
|
|
class CacheSQLDriverTest extends AnimeClient_TestCase {
|
|
|
|
use CacheDriverBase;
|
|
|
|
|
|
|
|
protected $driver;
|
|
|
|
|
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
$this->driver = new SQLDriver($this->container);
|
|
|
|
$friend = new Friend($this->driver);
|
|
|
|
$friend->db->query('CREATE TABLE IF NOT EXISTS "cache" ("key" TEXT NULL, "value" TEXT NULL, PRIMARY KEY ("key"))');
|
|
|
|
}
|
|
|
|
}
|