/** * @expectedException \InvalidArgumentException */ public function testThrowsExceptionWhenTemplateNotFound() { $fp = new FormParser(); $fp->setTemplate('there-is-no-spoon.php'); }