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