Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | public function testIsFeatureMatchFilter() |
||
11 | { |
||
12 | $feature = new FeatureNode(null, null, array(), null, array(), null, null, __FILE__, 1); |
||
13 | |||
14 | $filter = new PathsFilter(array(__DIR__)); |
||
15 | $this->assertTrue($filter->isFeatureMatch($feature)); |
||
16 | |||
17 | $filter = new PathsFilter(array('/abc', '/def', dirname(__DIR__))); |
||
18 | $this->assertTrue($filter->isFeatureMatch($feature)); |
||
19 | |||
20 | $filter = new PathsFilter(array('/abc', '/def', __DIR__)); |
||
21 | $this->assertTrue($filter->isFeatureMatch($feature)); |
||
22 | |||
23 | $filter = new PathsFilter(array('/abc', __DIR__, '/def')); |
||
24 | $this->assertTrue($filter->isFeatureMatch($feature)); |
||
25 | |||
26 | $filter = new PathsFilter(array('/abc', '/def', '/wrong/path')); |
||
27 | $this->assertFalse($filter->isFeatureMatch($feature)); |
||
28 | } |
||
29 | } |
||
30 |