attributes() public method

Returns the node attributes or null, if it is not DOMElement.
public attributes ( ) : array | null
return array | null
Beispiel #1
0
 public function testAttributes()
 {
     $attributes = ['type' => 'text', 'name' => 'username'];
     $element = new Element('input', null, $attributes);
     $this->assertEquals($attributes, $element->attributes());
 }