/** * {@inheritdoc} */ public function query() { $this->connect(); $stmt = $this->_conn->query(...func_get_args()); $stmt = new Statement($stmt, $this); $stmt->setFetchMode($this->defaultFetchMode); return $stmt; }
/** * {@inheritdoc} */ public function query() { $this->connect(); $stmt = call_user_func_array(array($this->_conn, 'query'), func_get_args()); $stmt = new Statement($stmt, $this); $stmt->setFetchMode($this->defaultFetchMode); return $stmt; }
public function testRowCount() { $rowCount = 666; $this->wrappedStmt->expects($this->once())->method('rowCount')->will($this->returnValue($rowCount)); $this->assertSame($rowCount, $this->stmt->rowCount()); }