@@ 139-146 (lines=8) @@ | ||
136 | } |
|
137 | } |
|
138 | ||
139 | protected function checkSingleMatch(bool $expect, $lhs, $rhs) |
|
140 | { |
|
141 | $check = $lhs->matches($rhs); |
|
142 | if ($check !== $expect) { |
|
143 | var_dump('no match', $expect, $lhs, $rhs); |
|
144 | } |
|
145 | $this->assertSame($expect, $check); |
|
146 | } |
|
147 | } |
|
148 |
@@ 95-102 (lines=8) @@ | ||
92 | } |
|
93 | } |
|
94 | ||
95 | protected function checkEquals(bool $expect, $lhs, $rhs) |
|
96 | { |
|
97 | $check = $lhs->equals($rhs); |
|
98 | if ($check !== $expect) { |
|
99 | var_dump('no equality', $expect, $lhs, $rhs); |
|
100 | } |
|
101 | $this->assertSame($expect, $check); |
|
102 | } |
|
103 | ||
104 | public function testMatches() |
|
105 | { |
|
@@ 151-158 (lines=8) @@ | ||
148 | } |
|
149 | } |
|
150 | ||
151 | protected function checkSingleMatch(bool $expect, $lhs, $rhs) |
|
152 | { |
|
153 | $check = $lhs->matches($rhs); |
|
154 | if ($check !== $expect) { |
|
155 | var_dump('no match', $expect, $lhs, $rhs); |
|
156 | } |
|
157 | $this->assertSame($expect, $check); |
|
158 | } |
|
159 | } |
|
160 |