예제 #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());
 }
예제 #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();
 }