Phalcon\Test\Unit\Mvc\View\Engine\Volt\CompilerTest::testVoltCompilerFile PHP Method

testVoltCompilerFile() public method

    public function testVoltCompilerFile()
    {
        $this->specify("Volt can't compile files properly", function () {
            @unlink(PATH_DATA . 'views/layouts/test10.volt.php');
            $volt = new Compiler();
            //Simple file
            $volt->compileFile(PATH_DATA . 'views/layouts/test10.volt', PATH_DATA . 'views/layouts/test10.volt.php');
            $compilation = file_get_contents(PATH_DATA . 'views/layouts/test10.volt.php');
            expect($compilation)->equals('<?php if ($some_eval) { ?>
Clearly, the song is: <?= $this->getContent() ?>.
<?php } ?>');
        });
    }