コード例 #1
0
ファイル: DictionaryTest.php プロジェクト: dpolac/dictionary
 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]);
 }