Example #1
0
 public function test_replace()
 {
     $bag = new ParameterBag(array('foo' => 'bar'));
     $bag->replace(array('FOO' => 'BAR'));
     $this->assertEquals(array('FOO' => 'BAR'), $bag->all(), '->replace() replaces the input with the argument');
     $this->assertFalse($bag->has('foo'), '->replace() overrides previously set the input');
 }
Example #2
0
 /**
  * @deprecated Since 1.2, to be removed in 2.0. Use getParameters() instead
  *
  * @return array
  */
 public function getOptions()
 {
     return $this->parameters->all();
 }