@@ 122-129 (lines=8) @@ | ||
119 | } |
|
120 | } |
|
121 | ||
122 | protected function checkSingleMatch(bool $expect, $lhs, $rhs) |
|
123 | { |
|
124 | $check = $lhs->matches($rhs); |
|
125 | if ($check !== $expect) { |
|
126 | var_dump('no match', $expect, $lhs, $rhs); |
|
127 | } |
|
128 | $this->assertSame($expect, $check); |
|
129 | } |
|
130 | } |
|
131 |
@@ 85-92 (lines=8) @@ | ||
82 | } |
|
83 | } |
|
84 | ||
85 | protected function checkEquals(bool $expect, $lhs, $rhs) |
|
86 | { |
|
87 | $check = $lhs->equals($rhs); |
|
88 | if ($check !== $expect) { |
|
89 | var_dump('no equality', $expect, $lhs, $rhs); |
|
90 | } |
|
91 | $this->assertSame($expect, $check); |
|
92 | } |
|
93 | ||
94 | public function testMatches() |
|
95 | { |
|
@@ 124-131 (lines=8) @@ | ||
121 | } |
|
122 | } |
|
123 | ||
124 | protected function checkSingleMatch(bool $expect, $lhs, $rhs) |
|
125 | { |
|
126 | $check = $lhs->matches($rhs); |
|
127 | if ($check !== $expect) { |
|
128 | var_dump('no match', $expect, $lhs, $rhs); |
|
129 | } |
|
130 | $this->assertSame($expect, $check); |
|
131 | } |
|
132 | } |
|
133 |