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

testForceShouldAlwaysBundle() public method

    public function testForceShouldAlwaysBundle()
    {
        $this->bundle->setForce(true);
        $this->bundle->start();
        echo $this->includeSome();
        $this->bundle->end();
        $first = $this->bundle->render();
        $this->bundle->reset();
        // Ensure we're sleeping 1 second so that the cache time changes
        sleep(1);
        $this->bundle->start();
        echo $this->includeSome();
        $this->bundle->end();
        $second = $this->bundle->render();
        $this->assertNotEquals($first, $second);
    }