public function testCommitBuy() { $buy = new Buy(); $this->client->expects($this->once())->method('commitBuy')->with($buy, []); $this->account->commitBuy($buy); }