1 | <?php |
||
27 | class InPathTest extends TestCase |
||
28 | { |
||
29 | /** @var InPath */ |
||
30 | private $fixture; |
||
31 | |||
32 | public function tearDown() : void |
||
36 | |||
37 | /** |
||
38 | * @uses \Flyfinder\Path |
||
39 | * |
||
40 | * @covers ::__construct |
||
41 | * @covers ::isSatisfiedBy |
||
42 | * @dataProvider validDirnames |
||
43 | */ |
||
44 | public function testExactMatch() : void |
||
57 | |||
58 | private function useWildcardPath() : void |
||
62 | |||
63 | /** |
||
64 | * @uses \Flyfinder\Path |
||
65 | * |
||
66 | * @covers ::__construct |
||
67 | * @covers ::isSatisfiedBy |
||
68 | * @dataProvider validDirnames |
||
69 | */ |
||
70 | public function testIfSpecificationIsSatisfied(string $dirname) : void |
||
75 | |||
76 | /** |
||
77 | * @uses \Flyfinder\Path |
||
78 | * |
||
79 | * @covers ::__construct |
||
80 | * @covers ::isSatisfiedBy |
||
81 | * @dataProvider validDirnames |
||
82 | */ |
||
83 | public function testWithSingleDotSpec(string $dirname) : void |
||
88 | |||
89 | /** |
||
90 | * @uses \Flyfinder\Path |
||
91 | * |
||
92 | * @covers ::__construct |
||
93 | * @covers ::isSatisfiedBy |
||
94 | * @dataProvider validDirnames |
||
95 | */ |
||
96 | public function testWithCurrentDirSpec(string $dirname) : void |
||
101 | |||
102 | /** |
||
103 | * Data provider for testIfSpecificationIsSatisfied. Contains a few valid directory names |
||
104 | * |
||
105 | * @return string[][] |
||
106 | */ |
||
107 | public function validDirnames() : array |
||
117 | |||
118 | /** |
||
119 | * @uses \Flyfinder\Path |
||
120 | * |
||
121 | * @covers ::__construct |
||
122 | * @covers ::isSatisfiedBy |
||
123 | * @dataProvider invalidDirnames |
||
124 | */ |
||
125 | public function testIfSpecificationIsNotSatisfied(string $dirname) : void |
||
130 | |||
131 | /** |
||
132 | * Data provider for testIfSpecificationIsNotSatisfied. Contains a few invalid directory names |
||
133 | * |
||
134 | * @return string[][] |
||
135 | */ |
||
136 | public function invalidDirnames() : array |
||
146 | |||
147 | /** |
||
148 | * @uses \Flyfinder\Path |
||
149 | * |
||
150 | * @covers ::__construct |
||
151 | * @covers ::isSatisfiedBy |
||
152 | */ |
||
153 | public function testNoFalsePositiveWithLongerDirName() : void |
||
167 | } |
||
168 |