/** * */ public function testRemoveAttribute() { $this->bag->add('foo', 'bar'); $this->bag->add('zee', 'bee'); $this->assertEquals(2, $this->bag->count()); $this->bag->remove('zee'); $this->assertEquals(1, $this->bag->count()); }
/** * Remove an attribute from the attributes bag. * * @param string $key attribute key */ public function remove($key) { $this->attributes->remove($key); }