public function testTag() { $imgHtml = \Fiv\Form\Element\Html::tag('img', ['src' => "/images/logo.png", 'title' => "logo"]); $this->assertTrue((bool) preg_match("!/>!", $imgHtml)); $this->assertTrue((bool) preg_match("!title=!", $imgHtml)); $this->assertTrue((bool) preg_match("!src=!", $imgHtml)); }