1 | <?php |
||
18 | class PathTest extends \PHPUnit_Framework_TestCase |
||
19 | { |
||
20 | protected $excludedPaths = [ |
||
21 | '/user', |
||
22 | '/^\/blog\/.+/', |
||
23 | ]; |
||
24 | |||
25 | /** |
||
26 | * @covers \Janitor\Excluder\Path::__construct |
||
27 | * @covers \Janitor\Excluder\Path::addPath |
||
28 | * @covers \Janitor\Excluder\Path::isExcluded |
||
29 | */ |
||
30 | public function testIsExcludedByString() |
||
37 | |||
38 | /** |
||
39 | * @covers \Janitor\Excluder\Path::__construct |
||
40 | * @covers \Janitor\Excluder\Path::addPath |
||
41 | * @covers \Janitor\Excluder\Path::isExcluded |
||
42 | */ |
||
43 | public function testIsExcludedByRegex() |
||
50 | |||
51 | /** |
||
52 | * @covers \Janitor\Excluder\Path::isExcluded |
||
53 | */ |
||
54 | public function testIsNotExcluded() |
||
61 | } |
||
62 |