/** * {@inheritdoc} */ public function supportsContentType($contentType) { return $this->renderer->supportsContentType($contentType); }
function it_supports_format_of_his_sub_renderer(TwigRenderer $renderer, $result) { $renderer->supportsContentType('test')->willReturn($result)->shouldBeCalledTimes(1); $this->supportsContentType('test')->shouldReturn($result); }