getAttribute() public method

public getAttribute ( $name ) : string
return string the attribute specified by the name, null if no such attribute
Esempio n. 1
0
 public function testSetAttribute()
 {
     $element = new TXmlElement('tag');
     self::assertEquals(null, $element->getAttribute('key'));
     $element->setAttribute('key', 'value');
     self::assertEquals('value', $element->getAttribute('key'));
 }