/** * @test */ public function renders_string_with_placeholders_filled() { $this->template->bind(['author' => self::TEST_AUTHOR]); $this->assertContains(self::TEST_AUTHOR, $this->template->render()); }
public function testWrongPatName() { $this->template->bind(['author' => self::TEST_AUTHOR, 'pat' => 'nonexistent']); $this->setExpectedException('\\InvalidArgumentException', 'Pat named "nonexistent" doesn\'t exist'); $this->template->render(); }