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