setValue() public method

Set the value of this node.
public setValue ( string $value ) : Element
$value string The new value of the node
return Element
Esempio n. 1
0
 public function testSetValue()
 {
     $element = new Element('span', 'hello');
     $element->setValue('test');
     $this->assertEquals('test', $element->text());
 }