Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function testPrefix() |
||
11 | { |
||
12 | $prefixMatcher = new Prefix('/full/path/to/'); |
||
13 | $needle = "file.php"; |
||
14 | $haystack = [ |
||
15 | '/full/path/to/someOtherFile.php', |
||
16 | '/full/path/to/longer/file.php', |
||
17 | '/full/path/to/file.php', |
||
18 | ]; |
||
19 | |||
20 | $this->assertEquals( |
||
21 | '/full/path/to/file.php', |
||
22 | $prefixMatcher->match($needle, $haystack) |
||
23 | ); |
||
36 |