/** * */ public function testMerge() { $first = ['one' => 1, 'two' => 2, 'three' => ['four' => 4, 'five' => 5]]; $second = ['two' => 'two', 'three' => ['four' => 'four']]; $expected = ['one' => 1, 'two' => 'two', 'three' => ['four' => 'four', 'five' => 5]]; $this->assertEquals($expected, Transform::merge($first, $second)); }
/** * Merges the given properties with the current ones. * * @param array $properties Properties to merge. */ public function configure(array $properties) { $this->_properties = Transform::merge($this->_properties, $properties); return $this; }