public function testImageStringParameterRemoteLink()
{
$this->specify("image with string parameter and remote link returns invalid HTML Strict", function () {
$options = 'http://phalconphp.com/img/hello.gif';
$expected = '<img src="http://phalconphp.com/img/hello.gif" />';
Tag::setDocType(Tag::XHTML10_STRICT);
$actual = Tag::image($options, false);
expect($actual)->equals($expected);
});
$this->specify("image with string parameter and local link returns invalid HTML XHTML", function () {
$options = 'http://phalconphp.com/img/hello.gif';
$expected = '<img src="http://phalconphp.com/img/hello.gif">';
Tag::setDocType(Tag::HTML5);
$actual = Tag::image($options, false);
expect($actual)->equals($expected);
});
}