/** * @covers HtmlElement::__toString */ public function test__toString() { $actual = $this->element->__toString(); $excepted = '<input name="sensorID"></input>'; $this->assertEquals($excepted, $actual); }
/** * Return the string representation of this control, as it should be shown * in edit mode. * * @return string */ public function toInput() { return parent::__toString(); }
public function __toString() { $this->set("href", $this->href); return $this->active ? parent::__toString() : $this->getBody(); }
function __toString() { $this->setAttribute("name", $this->_html_name); if (!$this->enabled) { $this->setAttribute("disabled", 'disabled'); } $this->afterHTML .= $this->getClientValidationHtml(); return parent::__toString(); }
public function __toString() { if ($this->getTag() == 'phtml') { return $this->getInnerString(); } return parent::__toString(); }