function _duplicate($object)
{
    return Underscore::duplicate($object);
}
Beispiel #2
0
 /**
  * @tags objects
  */
 public function testDuplicate()
 {
     $object = new \stdClass();
     $object->a = 1;
     $this->object(_::duplicate($object))->isCloneOf($object);
     $array = [1, 2, 3];
     $this->array(_::duplicate($array))->isEqualTo($array);
 }