Phalcon\Test\Unit\Tag\TagJavascriptIncludeTest::testJavascriptIncludeRemote PHP Method

testJavascriptIncludeRemote() public method

Tests javascriptInclude for a remote link
Since: 2014-09-29
Author: Nikolaos Dimopoulos ([email protected])
    public function testJavascriptIncludeRemote()
    {
        $this->specify("iavascriptInclude with a string parameter remote link returns invalid HTML", function () {
            Tag::resetInput();
            $options = 'http://my.local.com/js/phalcon.js';
            $expected = '<script type="text/javascript" src="http://my.local.com/js/phalcon.js"></script>' . PHP_EOL;
            $actual = Tag::javascriptInclude($options, false);
            expect($actual)->equals($expected);
        });
    }