コード例 #1
0
ファイル: TableGatewayTest.php プロジェクト: rikaix/zf2
 /**
  * @covers Zend\Db\TableGateway\TableGateway::delete
  */
 public function testDelete()
 {
     $mockDelete = $this->mockSql->delete();
     // assert select::from() is called
     $mockDelete->expects($this->once())->method('where')->with($this->equalTo('foo'));
     $this->table->delete('foo');
 }