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

testSetJsCacheUrlShouldBeUsedInOutput() public method

    public function testSetJsCacheUrlShouldBeUsedInOutput()
    {
        $this->bundle->setJsCacheUrl('http://mycdn.org');
        $this->bundle->start();
        echo '<script src="/js/js_1.js?1000" type="text/javascript"></script>';
        $this->bundle->end();
        $rendered = $this->bundle->render();
        $this->assertRegExp('/<script src="http:\\/\\/mycdn.org[^"]+" type="text\\/javascript"><\\/script>/', $rendered);
    }