merge() public method

Merges the given assigns into the current assigns
public merge ( array $newAssigns )
$newAssigns array
Example #1
0
 function test_cents_through_drop_nestedly()
 {
     $this->context->merge(array('cents' => array('cents' => new CentsDrop())));
     $this->assertEqual(100, $this->context->get('cents.cents.amount'));
     $this->context->merge(array('cents' => array('cents' => array('cents' => new CentsDrop()))));
     $this->assertEqual(100, $this->context->get('cents.cents.cents.amount'));
 }