Add setup tests

Fix setup process
This commit is contained in:
Romain Neutron
2012-05-03 14:54:00 +02:00
parent 1feae6a254
commit b539d86ad2
5 changed files with 176 additions and 33 deletions

View File

@@ -162,6 +162,19 @@ abstract class base implements cache_cacheableInterface
return $this->connection;
}
/**
* Replaces the connection
*
* @param \connection_pdo $connection
* @return \base
*/
public function set_connection(\connection_pdo $connection)
{
$this->connection = $connection;
return $this;
}
public function get_cache()
{
if (!$this->cache)