示例#1
0
 public function testHasAttribute()
 {
     $element = new TXmlElement('tag');
     self::assertEquals(false, $element->getHasAttribute());
     $element->Attributes[] = new TMap(array('key' => 'value'));
     self::assertEquals(true, $element->getHasAttribute());
 }