/** * Tests image with array parameter and remote link * * @author Nikolaos Dimopoulos <*****@*****.**> * @since 2014-09-05 */ public function testImageArrayParameterRemoteLink() { $this->specify("image with array parameter and remote link returns invalid HTML Strict", function () { $options = ['http://phalconphp.com/img/hello.gif', 'alt' => 'Hello']; $expected = '<img src="http://phalconphp.com/img/hello.gif" ' . 'alt="Hello" />'; PhTTag::setDocType(PhTTag::XHTML10_STRICT); $actual = PhTTag::image($options, false); expect($actual)->equals($expected); }); $this->specify("image with array parameter and local link returns invalid HTML XHTML", function () { $options = ['http://phalconphp.com/img/hello.gif', 'alt' => 'Hello']; $expected = '<img src="http://phalconphp.com/img/hello.gif" ' . 'alt="Hello">'; PhTTag::setDocType(PhTTag::HTML5); $actual = PhTTag::image($options, false); expect($actual)->equals($expected); }); }