public function testApiRemoveWriteStream_CallsMethodOnModel() { $loop = $this->loop; $stream = $this->createStreamMock(); $this->expect('removeWriteStream', [$stream]); $loop->removeWriteStream($stream); }