/** * @covers Zend\Db\TableGateway\TableGateway::select */ public function testSelectWithWhereString() { $select = $this->getMock('Zend\\Db\\Sql\\Select'); // assert select::from() is called $select->expects($this->once())->method('where')->with($this->equalTo('foo')); $this->table->setSqlSelect($select); $this->table->select('foo'); }