예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function query()
 {
     $this->connect();
     $stmt = $this->_conn->query(...func_get_args());
     $stmt = new Statement($stmt, $this);
     $stmt->setFetchMode($this->defaultFetchMode);
     return $stmt;
 }
예제 #2
0
 /**
  * {@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;
 }
예제 #3
0
 public function testRowCount()
 {
     $rowCount = 666;
     $this->wrappedStmt->expects($this->once())->method('rowCount')->will($this->returnValue($rowCount));
     $this->assertSame($rowCount, $this->stmt->rowCount());
 }