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