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(); } }
function test_default() { $file_system = new LiquidBlankFileSystem(); $file_system->read_template_file('dummy'); $this->assertError("This liquid context does not allow includes."); }