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

testBundleJsOnlyShouldOutputJsIncludeStatement() public method

    public function testBundleJsOnlyShouldOutputJsIncludeStatement()
    {
        $this->bundle->start();
        list($first) = explode("\n", $this->includeSome());
        echo $first;
        $this->bundle->end();
        $output = $this->bundle->render();
        $split = explode("\n", $output);
        $this->assertEquals(1, count($split));
        $this->assertRegExp('/js/', $split[0]);
    }