/** * @return null */ public function tearDown() { $this->assertTrue($this->conn->close()); unset($this->driver); unset($this->conn); unset($this->query); }
/** * The query class always frees the result so you don't have to worry * about use and store result flags from the prespective of having to * free results * * @return null */ public function testUnBufferedSendQuery() { $driver = $this->conn->getDriver(); $sql = 'SELECT query_id, result FROM test_queries WHERE query_id=1'; $result = $this->query->execute($driver, $sql, MYSQLI_USE_RESULT); $expected = array(array('query_id' => 1, 'result' => 'query issued')); $this->assertEquals($expected, $result); $sql = 'SELECT query_id, result FROM test_queries WHERE query_id=2'; $result = $this->query->execute($driver, $sql); $expected = array(array('query_id' => 2, 'result' => 'query 2 issued')); $this->assertEquals($expected, $result); }
/** * @return null */ public function tearDown() { $this->assertTrue($this->conn->close()); unset($this->conn); unset($this->adapter); }