Ejemplo n.º 1
0
 /**
  *
  */
 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());
 }
Ejemplo n.º 2
0
 /**
  * Remove an attribute from the attributes bag.
  *
  * @param string $key attribute key
  */
 public function remove($key)
 {
     $this->attributes->remove($key);
 }