| @@ 113-120 (lines=8) @@ | ||
| 110 | $this->checkMatches($targets, false); |
|
| 111 | } |
|
| 112 | ||
| 113 | protected function checkMatches(array $targets, bool $expect = true) |
|
| 114 | { |
|
| 115 | foreach ($targets as $k => $v) { |
|
| 116 | foreach ($targets as $j => $w) { |
|
| 117 | $this->checkSingleMatch($k === $j || $expect, $v, $w); |
|
| 118 | } |
|
| 119 | } |
|
| 120 | } |
|
| 121 | ||
| 122 | protected function checkSingleMatch(bool $expect, $lhs, $rhs) |
|
| 123 | { |
|
| @@ 115-122 (lines=8) @@ | ||
| 112 | $this->checkMatches($types, false); |
|
| 113 | } |
|
| 114 | ||
| 115 | protected function checkMatches(array $types, bool $expect = true) |
|
| 116 | { |
|
| 117 | foreach ($types as $k => $v) { |
|
| 118 | foreach ($types as $j => $w) { |
|
| 119 | $this->checkSingleMatch($k === $j || $expect, $v, $w); |
|
| 120 | } |
|
| 121 | } |
|
| 122 | } |
|
| 123 | ||
| 124 | protected function checkSingleMatch(bool $expect, $lhs, $rhs) |
|
| 125 | { |
|