| @@ 67-72 (lines=6) @@ | ||
| 64 | $copies[$k] = $this->copy($v); |
|
| 65 | } |
|
| 66 | ||
| 67 | foreach ($all as $k => $v) { |
|
| 68 | foreach ($copies as $j => $w) { |
|
| 69 | $this->assertSame($j === $k, $v->equals($w)); |
|
| 70 | $this->assertSame($j === $k, $w->equals($v)); |
|
| 71 | } |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| 75 | protected function copy(TargetInterface $target) |
|
| @@ 77-82 (lines=6) @@ | ||
| 74 | $copies[$k] = $this->copy($v); |
|
| 75 | } |
|
| 76 | ||
| 77 | foreach ($all as $k => $v) { |
|
| 78 | foreach ($copies as $j => $w) { |
|
| 79 | $this->checkEquals($j === $k, $v, $w); |
|
| 80 | $this->checkEquals($j === $k, $w, $v); |
|
| 81 | } |
|
| 82 | } |
|
| 83 | } |
|
| 84 | ||
| 85 | protected function checkEquals(bool $expect, $lhs, $rhs) |
|