Example #1
0
 /**
  * @dataProvider provideTestPlaceholderReplacement
  * @covers Template
  */
 public function testPlaceholderReplacement($templateCode, $placeholders, $expectedPrettyPrint)
 {
     $parser = new Parser(new Lexer());
     $prettyPrinter = new PrettyPrinter\Standard();
     $template = new Template($parser, $templateCode);
     $this->assertEquals($expectedPrettyPrint, $prettyPrinter->prettyPrint($template->getStmts($placeholders)));
 }