コード例 #1
0
 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));
     }
 }
コード例 #2
0
 /**
  * Set the PathFinder to use when looking for templates
  * @param PathFinder $pathFinder
  */
 public static function setPathFinder(PathFinder $pathFinder)
 {
     self::$paths = $pathFinder;
 }