DotsUnited\BundleFu\Tests\BundleTest::testContentChangesShouldRefreshCache PHP Method

testContentChangesShouldRefreshCache() public method

    public function testContentChangesShouldRefreshCache()
    {
        $this->bundle->start();
        echo $this->includeSome();
        $this->bundle->end();
        $this->bundle->render();
        $this->appendToFile($this->bundle->getCssBundlePath(), "BOGUS");
        $this->appendToFile($this->bundle->getJsBundlePath(), "BOGUS");
        $this->assertFileMatch($this->bundle->getCssBundlePath(), "BOGUS");
        $this->assertFileMatch($this->bundle->getJsBundlePath(), "BOGUS");
        $this->bundle->getCssFileList()->reset();
        $this->bundle->getJsFileList()->reset();
        $this->bundle->start();
        echo $this->includeAll();
        $this->bundle->end();
        $this->bundle->render();
        $this->assertFileNotMatch($this->bundle->getCssBundlePath(), "BOGUS");
        $this->assertFileNotMatch($this->bundle->getJsBundlePath(), "BOGUS");
    }