MiniAsset\Test\TestCase\CachedCompilerTest::testGenerateWritesCache PHP Method

testGenerateWritesCache() public method

And that cache files are correct.
public testGenerateWritesCache ( ) : void
return void
    public function testGenerateWritesCache()
    {
        $compiler = $this->instance();
        $target = $this->target();
        $result = $compiler->generate($target);
        $expected = <<<TEXT
@import 'base' screen;
@import 'nav.css' screen and (orientation: landscape);
#footer {
    color: blue;
}

@import url("reset/reset.css");
#nav {
    width:100%;
}
TEXT;
        $this->assertEquals($expected, $result);
        $this->assertFileExists(TMP . '/all.css');
        $this->assertEquals($expected, file_get_contents(TMP . '/all.css'));
    }