Example #1
0
 public function test_remove()
 {
     $bag = new ParameterBag(array('foo' => 'bar'));
     $bag->add(array('bar' => 'bas'));
     $this->assertEquals(array('foo' => 'bar', 'bar' => 'bas'), $bag->all());
     $bag->remove('bar');
     $this->assertEquals(array('foo' => 'bar'), $bag->all());
 }
Example #2
0
 /**
  * @deprecated Since 1.2, to be removed in 2.0. Use getParameters() instead
  *
  * @param string $name
  *
  * @return SsoState
  */
 public function removeOption($name)
 {
     $this->parameters->remove($name);
     return $this;
 }