Exemplo n.º 1
0
 /**
  * {@inheritdocs}
  */
 public function merge($arg)
 {
     $arguments = array_map(function ($array) {
         if ($array instanceof DataContainer) {
             return $array->getContents();
         }
         return $array;
     }, func_get_args());
     $arguments = call_user_func_array('Arr::merge', $arguments);
     $this->validate($arguments);
     return parent::merge($arguments);
 }
Exemplo n.º 2
0
 /**
  * @expectedException  \InvalidArgumentException
  * @group Common
  */
 public function testInvalidMerge()
 {
     $c = new DataContainer();
     $c->merge(1);
 }