Inheritance: extends Gush\Template\AbstractTemplate
Ejemplo n.º 1
0
 /**
  * @test
  */
 public function renders_string_with_placeholders_filled()
 {
     $this->template->bind(['author' => self::TEST_AUTHOR]);
     $this->assertContains(self::TEST_AUTHOR, $this->template->render());
 }
Ejemplo n.º 2
0
 public function testWrongPatName()
 {
     $this->template->bind(['author' => self::TEST_AUTHOR, 'pat' => 'nonexistent']);
     $this->setExpectedException('\\InvalidArgumentException', 'Pat named "nonexistent" doesn\'t exist');
     $this->template->render();
 }