Пример #1
0
 /**
  * @param string $markdown
  * @param string $expected
  * @dataProvider e2eProvider
  */
 public function testFullRender($markdown, $expected)
 {
     $factory = new CliRendererFactory();
     $renderer = $factory->__invoke();
     $parser = new DocParser(Environment::createCommonMarkEnvironment());
     $this->assertEquals($expected, $renderer->renderBlock($parser->parse($markdown)));
 }
 public function testFactoryReturnsInstance()
 {
     $factory = new CliRendererFactory();
     $this->assertInstanceOf(CliRenderer::class, $factory->__invoke());
 }