| @@ 69-74 (lines=6) @@ | ||
| 66 | $copies[$k] = $this->copy($v); |
|
| 67 | } |
|
| 68 | ||
| 69 | foreach ($all as $k => $v) { |
|
| 70 | foreach ($copies as $j => $w) { |
|
| 71 | $this->assertSame($j === $k, $v->equals($w)); |
|
| 72 | $this->assertSame($j === $k, $w->equals($v)); |
|
| 73 | } |
|
| 74 | } |
|
| 75 | } |
|
| 76 | ||
| 77 | protected function copy(TargetInterface $target) |
|
| @@ 87-92 (lines=6) @@ | ||
| 84 | $copies[$k] = $this->copy($v); |
|
| 85 | } |
|
| 86 | ||
| 87 | foreach ($all as $k => $v) { |
|
| 88 | foreach ($copies as $j => $w) { |
|
| 89 | $this->checkEquals($j === $k, $v, $w); |
|
| 90 | $this->checkEquals($j === $k, $w, $v); |
|
| 91 | } |
|
| 92 | } |
|
| 93 | } |
|
| 94 | ||
| 95 | protected function checkEquals(bool $expect, $lhs, $rhs) |
|