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

testJavascriptIncludeWithArrayRemote() public method

Tests javascriptInclude with array parameter for a remote link
Since: 2014-09-29
Author: Nikolaos Dimopoulos ([email protected])
    public function testJavascriptIncludeWithArrayRemote()
    {
        $this->specify("iavascriptInclude with array second 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);
        });
    }