public function testApiIsHandling_CallsMethodOnModel() { $logger = $this->createLoggerMock(); $level = 'some'; $result = 'result'; $this->expect('isHandling', [$level])->willReturn($result); $this->assertSame($result, $logger->isHandling($level)); }