function testRequireTemplateName() { try { $content = Jsont::draw('', array()); $this->fail('Should throw RecessFrameworkException'); } catch (RecessFrameworkException $e) { $this->assertTrue(true); } catch (Exception $e) { $this->fail('Should throw RecessFrameworkException. Threw: ' . get_class($e)); } }
/** * Set the PathFinder to use when looking for templates * @param PathFinder $pathFinder */ public static function setPathFinder(PathFinder $pathFinder) { self::$paths = $pathFinder; }