コード例 #1
0
function _duplicate($object)
{
    return Underscore::duplicate($object);
}
コード例 #2
0
ファイル: Underscore.php プロジェクト: brombal/underscore.php
 /**
  * @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);
 }