public function testApiFormatBatch_CallsMethodOnModel() { $formatter = $this->createFormatter(); $array = ['some']; $val = 'val'; $this->expect('formatBatch', [$array])->willReturn($val); $this->assertSame($val, $formatter->formatBatch($array)); }