public function testVoltCompilerExtendsFile()
{
$this->specify("Volt files can't extend other files", function () {
@unlink(PATH_DATA . 'views/layouts/test10.volt.php');
@unlink(PATH_DATA . 'views/test10/children.extends.volt.php');
$view = new View();
$view->setViewsDir(PATH_DATA . 'views/');
$volt = new Compiler($view);
//extends
$volt->compileFile(PATH_DATA . 'views/test10/children.extends.volt', PATH_DATA . 'views/test10/children.extends.volt.php');
$compilation = file_get_contents(PATH_DATA . 'views/test10/children.extends.volt.php');
expect($compilation)->equals('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"><html lang="en"><html xmlns="http://www.w3.org/1999/xhtml"><head><style type="text/css">.important { color: #336699; }</style><title>Index - My Webpage</title></head><body><div id="content"><h1>Index</h1><p class="important">Welcome on my awesome homepage.</p></div><div id="footer">© Copyright 2012 by <a href="http://domain.invalid/">you</a>.</div></body>');
});
}