Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | class RestrictToBaseUriFilterTest extends TestCase |
||
22 | { |
||
23 | /** |
||
24 | * @covers VDB\Spider\Filter\Prefetch\RestrictToBaseUriFilter |
||
25 | * @dataProvider matchURIProvider |
||
26 | */ |
||
27 | public function testMatch($href, $expected) |
||
28 | { |
||
29 | $filter = new RestrictToBaseUriFilter('http://php-spider.org'); |
||
30 | |||
31 | $uri = new Uri($href); |
||
32 | |||
33 | $this->assertEquals($expected, $filter->match($uri)); |
||
34 | } |
||
35 | |||
36 | public function matchURIProvider() |
||
42 | |||
43 | ); |
||
46 |