/** * @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'); }