MiniAsset\Test\TestCase\Filter\SprocketsTest::testAngleBracketScanning PHP Method

testAngleBracketScanning() public method

test that scans all search paths for a suitable file. Unlike "foo" which only scans the current dir.
public testAngleBracketScanning ( ) : void
return void
    public function testAngleBracketScanning()
    {
        $content = file_get_contents($this->_jsDir . 'classes' . DS . 'slideshow.js');
        $result = $this->filter->input('slideshow.js', $content);
        $expected = <<<TEXT
/*!
 this comment will stay
*/
// Local script

// this comment should be removed
function test(thing) {
    /* this comment will be removed */
    // I'm gone
    thing.doStuff(); //I get to stay
    return thing;
}

var AnotherClass = Class.extend({

});

var Slideshow = new Class({

});

TEXT;
        $this->assertTextEquals($expected, $result);
    }