Пример #1
0
 /**
  * @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);
 }
Пример #2
0
 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'));
 }