2016-08-04 14:55:37 -04:00
|
|
|
<?php
|
|
|
|
|
2016-08-29 11:34:25 -04:00
|
|
|
namespace Aviat\Ion\Tests\Cache\Driver;
|
2016-08-04 14:55:37 -04:00
|
|
|
|
|
|
|
use Aviat\Ion\Friend;
|
|
|
|
use Aviat\Ion\Cache\Driver\SQLDriver;
|
|
|
|
|
2016-08-29 11:34:25 -04:00
|
|
|
class CacheSQLDriverTest extends \Ion_TestCase {
|
2016-08-04 14:55:37 -04:00
|
|
|
use CacheDriverBase;
|
2016-08-29 11:34:25 -04:00
|
|
|
|
2016-08-04 14:55:37 -04:00
|
|
|
protected $driver;
|
2016-08-29 11:34:25 -04:00
|
|
|
|
2016-08-04 14:55:37 -04:00
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
$this->driver = new SQLDriver($this->container->get('config'));
|
|
|
|
$friend = new Friend($this->driver);
|
|
|
|
$friend->db->query('CREATE TABLE IF NOT EXISTS "cache" ("key" TEXT NULL, "value" TEXT NULL, PRIMARY KEY ("key"))');
|
|
|
|
}
|
|
|
|
}
|