/** * @covers HtmlElement::setTooltip */ public function testSetTooltip() { $elt = $this->element->setTooltip("Validate changes"); $actual = $elt->get("title"); $excepted = "Validate changes"; $this->assertInstanceOf("HtmlElement", $elt); $this->assertEquals($excepted, $actual); }