public function testApiIsRunning_CallsMethodOnModel() { $loop = $this->loop; $result = true; $this->expect('isRunning', [])->willReturn($result); $this->assertSame($result, $loop->isRunning()); }