Esempio n. 1
0
 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());
 }
Esempio n. 2
0
 public function close()
 {
     $this->connection->close();
 }