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

testGenerateReadsCacheOnFreshFiles() public method

Test that cache files are read when they are fresh
    public function testGenerateReadsCacheOnFreshFiles()
    {
        $expected = 'cached data';
        file_put_contents(TMP . '/all.css', $expected);
        $compiler = $this->instance();
        $target = $this->target();
        $result = $compiler->generate($target);
        $this->assertEquals($expected, $result);
    }