Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function testNormalize(): void |
||
20 | { |
||
21 | $normalizer = new RegexNormalizer(); |
||
22 | |||
23 | $matcher = new class('/^Foo(.*)/(.*)/', 2) extends RegexMatcher { |
||
24 | public function getName() |
||
25 | { |
||
26 | throw new NotImplementedException(__METHOD__); |
||
27 | } |
||
28 | }; |
||
29 | |||
30 | $this->assertEquals( |
||
31 | [ |
||
32 | 'regex' => '/^Foo(.*)/(.*)/', |
||
33 | 'itemNumber' => 2, |
||
34 | 'matchedSiteAccess' => null, |
||
35 | ], |
||
36 | $normalizer->normalize($matcher) |
||
37 | ); |
||
38 | } |
||
39 | |||
48 |