public function testRemoveAttr() { $tag = new PHPricot_Nodes_Element('p', array('id' => 'foo')); $tag->removeAttr('id'); $this->assertNull($tag->attr('id')); }