getNodeName() public method

Method to return the child node name.
public getNodeName ( ) : string
return string
Ejemplo n.º 1
0
 public function testSetAndGetNodeName()
 {
     $c = new Child('p', 'This is a paragraph');
     $c->setNodeName('span');
     $this->assertEquals('span', $c->getNodeName());
 }