| @@ 26-34 (lines=9) @@ | ||
| 23 | $this->assertDeepCopyOf($o, $deepCopy->copy($o)); |
|
| 24 | } |
|
| 25 | ||
| 26 | public function testPropertyObjectCopy() |
|
| 27 | { |
|
| 28 | $o = new A(); |
|
| 29 | $o->property1 = new B(); |
|
| 30 | ||
| 31 | $deepCopy = new DeepCopy(); |
|
| 32 | ||
| 33 | $this->assertDeepCopyOf($o, $deepCopy->copy($o)); |
|
| 34 | } |
|
| 35 | ||
| 36 | public function testPropertyArrayCopy() |
|
| 37 | { |
|
| @@ 36-44 (lines=9) @@ | ||
| 33 | $this->assertDeepCopyOf($o, $deepCopy->copy($o)); |
|
| 34 | } |
|
| 35 | ||
| 36 | public function testPropertyArrayCopy() |
|
| 37 | { |
|
| 38 | $o = new A(); |
|
| 39 | $o->property1 = [new B()]; |
|
| 40 | ||
| 41 | $deepCopy = new DeepCopy(); |
|
| 42 | ||
| 43 | $this->assertDeepCopyOf($o, $deepCopy->copy($o)); |
|
| 44 | } |
|
| 45 | ||
| 46 | public function testCycleCopy1() |
|
| 47 | { |
|