__toString() public method

Convert the element to its string representation.
public __toString ( ) : string
return string
コード例 #1
0
ファイル: ElementTest.php プロジェクト: imangazaliev/didom
 public function testToString()
 {
     $element = new Element('span', 'hello');
     $this->assertEquals($element->html(), $element->__toString());
 }