public function testApiIsHandling_CallsMethodOnModel() { $handler = $this->createHandler(); $array = ['some']; $val = 'val'; $this->expect('isHandling', [$array])->willReturn($val); $this->assertSame($val, $handler->isHandling($array)); }