示例#1
0
 public function testGetAttributes()
 {
     $htmlElement = new HtmlElement();
     $attributes = array('my' => 'foo', 'your' => 'bar', 'our' => 'baz');
     $htmlElement->setAttributes($attributes);
     $htmlElement->addAttribute('gimme', 'bacon');
     $this->assertEquals(array_merge($attributes, array('gimme' => 'bacon')), $htmlElement->getAttributes());
 }