public function testGetLastInsertId() { $this->tableGatewayMock->expects($this->once())->method('getLastInsertValue')->will($this->returnValue(11)); $this->assertEquals(11, $this->table->getLastInsertId()); }