public function testVoltCompilerImportFile()
{
$this->specify("Volt files can't import other files", function () {
@unlink(PATH_DATA . 'views/partials/header.volt.php');
@unlink(PATH_DATA . 'views/partials/footer.volt.php');
@unlink(PATH_DATA . 'views/test10/import.volt.php');
$view = new View();
$view->setViewsDir(PATH_DATA . 'views/');
$volt = new Compiler($view);
//extends
$volt->compileFile(PATH_DATA . 'views/test10/import.volt', PATH_DATA . 'views/test10/import.volt.php');
$compilation = file_get_contents(PATH_DATA . 'views/test10/import.volt.php');
expect($compilation)->equals('<div class="header"><h1>This is the header</h1></div><div class="footer"><p>This is the footer</p></div>');
});
}