/** * Testing Add/Remove Attribute * * @param string Name of attribute to add to node. * @param mixed Value to assign to added attribute. * * @return void * @dataProvider casesAttributes */ function testAddAndRemoveAttributes($attName, $attValue) { $this->assertThat($this->object->attributes($attName), $this->equalTo(null)); $this->object->addAttribute($attName, $attValue); $this->assertThat($this->object->attributes($attName), $this->equalTo($attValue)); $this->object->removeAttribute($attName); $this->assertThat($this->object->attributes($attName), $this->equalTo(null)); }