public function testRemoveAttribute() { $htmlElement = new HtmlElement(); $attributes = array('my' => 'foo', 'your' => 'bar', 'our' => 'baz'); $htmlElement->setAttributes($attributes); $htmlElement->removeAttribute('your'); $this->assertEquals('<div my="foo" our="baz"></div>', $htmlElement->render()); }