Pipe\Test\DirectiveProcessorTest::testAssemblesJavascript PHP Метод

testAssemblesJavascript() публичный Метод

    function testAssemblesJavascript()
    {
        $asset = $this->env->find('application.js');
        $asserted = <<<'EOL'
// util.js
// Some Utils

;
// module/ui/base.js
var UI = {
    foo: "bar"
};

// module/ui/colorpicker.js

UI.ColorPicker = (function() {
})();

// module/ui/datepicker.js

UI.DatePicker = (function() {
})();

// ui.js
// Some UI Components

;// The Main Manifest
//
;
EOL;
        $this->assertEquals($asserted, $asset->getBody());
    }