Example #1
0
 /**
  * Test that an exception is thrown with an uninitialised template path.
  *
  * Note that this relies on a "cheating" method on Template to reset the
  * path that was set in the setUp() for the test.
  *
  * @expectedException  \UnexpectedValueException
  *
  */
 public function testNullPath()
 {
     Template::nullizePath();
     try {
         $path = AbstractTemplate::getPath();
     } catch (\InvalidArgumentException $e) {
         return;
     }
     $this->fail();
 }