public function testCloseConnection() { $actionQueue = new ActionQueue(); $connection = new Connection("", "", "sqlite::memory:", array(), $actionQueue); $connection->run("SELECT 1;"); $this->assertTrue($connection->isConnected()); $connection->close(); $this->assertFalse($connection->isConnected()); }
/** * @param $queryString */ public function run($queryString) { $this->connection->run($queryString); }