示例#1
0
文件: Adapter.php 项目: phlib/db
 /**
  * @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
文件: CrudTest.php 项目: phlib/db
 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'));
 }