Inheritance: extends Gush\Template\AbstractTemplate
Esempio 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());
 }
Esempio 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();
 }