1 | <?php |
||
24 | class InPathTest extends TestCase |
||
25 | { |
||
26 | /** @var InPath */ |
||
27 | private $fixture; |
||
28 | |||
29 | public function tearDown() |
||
33 | |||
34 | /** |
||
35 | * @covers ::__construct |
||
36 | * @covers ::isSatisfiedBy |
||
37 | * @dataProvider validDirnames |
||
38 | * @uses Flyfinder\Path |
||
39 | */ |
||
40 | public function testExactMatch() |
||
53 | |||
54 | private function useWildcardPath() |
||
58 | |||
59 | /** |
||
60 | * @covers ::__construct |
||
61 | * @covers ::isSatisfiedBy |
||
62 | * @dataProvider validDirnames |
||
63 | * @uses Flyfinder\Path |
||
64 | */ |
||
65 | public function testIfSpecificationIsSatisfied($dirname) |
||
70 | |||
71 | /** |
||
72 | * @covers ::__construct |
||
73 | * @covers ::isSatisfiedBy |
||
74 | * @dataProvider validDirnames |
||
75 | * @uses Flyfinder\Path |
||
76 | */ |
||
77 | public function testWithSingleDotSpec($dirname) |
||
82 | |||
83 | /** |
||
84 | * @covers ::__construct |
||
85 | * @covers ::isSatisfiedBy |
||
86 | * @dataProvider validDirnames |
||
87 | * @uses Flyfinder\Path |
||
88 | */ |
||
89 | public function testWithCurrentDirSpec($dirname) |
||
94 | |||
95 | /** |
||
96 | * Data provider for testIfSpecificationIsSatisfied. Contains a few valid directory names |
||
97 | * |
||
98 | * @return array |
||
99 | */ |
||
100 | public function validDirnames() |
||
110 | |||
111 | /** |
||
112 | * @covers ::__construct |
||
113 | * @covers ::isSatisfiedBy |
||
114 | * @dataProvider invalidDirnames |
||
115 | * @uses Flyfinder\Path |
||
116 | */ |
||
117 | public function testIfSpecificationIsNotSatisfied($dirname) |
||
122 | |||
123 | /** |
||
124 | * Data provider for testIfSpecificationIsNotSatisfied. Contains a few invalid directory names |
||
125 | * |
||
126 | * @return array |
||
127 | */ |
||
128 | public function invalidDirnames() |
||
138 | } |
||
139 |