public function testInsert() { $data = ['key' => 'value']; $this->tableGatewayMock->expects($this->once())->method('insert')->with($this->equalTo($data)); $this->table->insert($data); }