/** * @expectedException \InvalidArgumentException */ public function testRenderWithInvalidType() { $inline = $this->getMockForAbstractClass('League\\CommonMark\\Inline\\Element\\AbstractInline'); $fake_renderer = new FakeHtmlRenderer(); $this->renderer->render($inline, $fake_renderer); }