/** * Tests javascriptInclude with array parameter for a remote link * * @author Nikolaos Dimopoulos <*****@*****.**> * @since 2014-09-29 */ public function testJavascriptIncludeWithArrayRemote() { $this->specify("iavascriptInclude with array second parameter remote link returns invalid HTML", function () { PhTTag::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 = PhTTag::javascriptInclude($options, false); expect($actual)->equals($expected); }); }