/** * Remove the attribute(s) on all selected element nodes * * @see ArrayAccess::offsetUnset() * @see FluentDOM::removeAttr() * @example properties/attr-unset.php Usage: Remove attribute properties * @param string|array $name */ public function offsetUnset($name) { $this->_fd->removeAttr($name); }
/** * @group Attributes * @covers FluentDOM::removeAttr */ public function testRemoveAttrWithInvalidParameter() { $fd = new FluentDOM(); try { $fd->removeAttr(1); $this->fail('An expected exception has not been raised.'); } catch (InvalidArgumentException $expected) { } }