DotsUnited\BundleFu\Tests\BundleTest::testContentRemainsSameShouldntRefreshCache PHP 메소드

testContentRemainsSameShouldntRefreshCache() 공개 메소드

    public function testContentRemainsSameShouldntRefreshCache()
    {
        $this->bundle->start();
        echo $this->includeSome();
        $this->bundle->end();
        $this->bundle->render();
        // check to see each bundle file exists and append some text to the bottom of each file
        $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->includeSome();
        $this->bundle->end();
        $this->bundle->render();
        $this->assertFileMatch($this->bundle->getCssBundlePath(), "BOGUS");
        $this->assertFileMatch($this->bundle->getJsBundlePath(), "BOGUS");
    }