Пример #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
 /**
  * @param $queryString
  */
 public function run($queryString)
 {
     $this->connection->run($queryString);
 }