/** * @param string $table * @param string $where * @param array $bind * @return \PDOStatement */ public function select($table, $where = '', array $bind = array()) { return $this->crud->select($table, $where, $bind); }
public function testSelectReturnsStatement() { $pdoStatement = $this->getMock('\\PDOStatement'); $this->adapter->expects($this->any())->method('query')->will($this->returnValue($pdoStatement)); $this->assertSame($pdoStatement, $this->crud->select('my_table')); }