public testApiSetFormatter_CallsMethodOnModel ( ) |
public function testApiSetFormatter_CallsMethodOnModel()
{
$handler = $this->createHandler();
$formatter = new Formatter(new LineFormatter());
$result = $formatter;
$this->expect('setFormatter', [$formatter])->willReturn($result);
$this->assertSame($result, $handler->setFormatter($formatter));
}