public function testGetCopy() { $d = new Dictionary(); $d['a'] = 12; $d[new \stdClass()] = 34; $d[12] = new \stdClass(); $clone = $d->getCopy(); $this->assertEquals($d, $clone); $this->assertNotSame($d, $clone); $this->assertSame($d[12], $clone[12]); }