public __toString ( ) : string | ||
return | string |
public function __toString()
{
return $this->html();
}
public function testToString() { $element = new Element('span', 'hello'); $this->assertEquals($element->html(), $element->__toString()); }