Example #1
0
 function test_default()
 {
     $file_system = new LiquidBlankFileSystem();
     try {
         $file_system->read_template_file('dummy');
         $this->fail("Exception was expected.");
     } catch (Exception $e) {
         $this->assertEqual($e->getMessage(), "This liquid context does not allow includes.");
         $this->pass();
     }
 }
Example #2
0
 function test_default()
 {
     $file_system = new LiquidBlankFileSystem();
     $file_system->read_template_file('dummy');
     $this->assertError("This liquid context does not allow includes.");
 }