示例#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());
 }
示例#2
0
 public function close()
 {
     $this->connection->close();
 }