function _duplicate($object) { return Underscore::duplicate($object); }
/** * @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); }