setValue() public method

Set the value of this node.
public setValue ( string $value ) : Element
$value string The new value of the node
return Element
コード例 #1
0
ファイル: ElementTest.php プロジェクト: imangazaliev/didom
 public function testSetValue()
 {
     $element = new Element('span', 'hello');
     $element->setValue('test');
     $this->assertEquals('test', $element->text());
 }