1 | <?php |
||
9 | class PrefixTest extends TestCase |
||
10 | { |
||
11 | /** |
||
12 | */ |
||
13 | public function testConstructCorrectInstance() |
||
19 | |||
20 | /** |
||
21 | * @covers OpCacheGUI\Format\Prefix::trim |
||
22 | * @covers OpCacheGUI\Format\Prefix::getPrefixLength |
||
23 | * @covers OpCacheGUI\Format\Prefix::findLongestPrefix |
||
24 | */ |
||
25 | public function testTrimWithoutCommonPrefix() |
||
40 | |||
41 | /** |
||
42 | * @covers OpCacheGUI\Format\Prefix::trim |
||
43 | * @covers OpCacheGUI\Format\Prefix::getPrefixLength |
||
44 | * @covers OpCacheGUI\Format\Prefix::findLongestPrefix |
||
45 | */ |
||
46 | public function testTrimWithoutCommonPrefixEarlyReturn() |
||
64 | |||
65 | /** |
||
66 | * @covers OpCacheGUI\Format\Prefix::trim |
||
67 | * @covers OpCacheGUI\Format\Prefix::getPrefixLength |
||
68 | * @covers OpCacheGUI\Format\Prefix::findLongestPrefix |
||
69 | */ |
||
70 | public function testTrimWithCommonPrefixPath() |
||
94 | |||
95 | /** |
||
96 | * @covers OpCacheGUI\Format\Prefix::trim |
||
97 | * @covers OpCacheGUI\Format\Prefix::getPrefixLength |
||
98 | * @covers OpCacheGUI\Format\Prefix::findLongestPrefix |
||
99 | */ |
||
100 | public function testTrimWithCommonPrefixNonPath() |
||
124 | |||
125 | /** |
||
126 | * @covers OpCacheGUI\Format\Prefix::trim |
||
127 | * @covers OpCacheGUI\Format\Prefix::getPrefixLength |
||
128 | * @covers OpCacheGUI\Format\Prefix::findLongestPrefix |
||
129 | */ |
||
130 | public function testTrimWithCommonPrefixPathWindowsDirectorySeparator() |
||
154 | |||
155 | /** |
||
156 | * @covers OpCacheGUI\Format\Prefix::trim |
||
157 | * @covers OpCacheGUI\Format\Prefix::getPrefixLength |
||
158 | * @covers OpCacheGUI\Format\Prefix::findLongestPrefix |
||
159 | */ |
||
160 | public function testTrimWithCommonPrefixNonPathWindowsDirectorySeparator() |
||
184 | |||
185 | /** |
||
186 | * @covers OpCacheGUI\Format\Prefix::trim |
||
187 | * @covers OpCacheGUI\Format\Prefix::getPrefixLength |
||
188 | * @covers OpCacheGUI\Format\Prefix::findLongestPrefix |
||
189 | */ |
||
190 | public function testTrimWithCommonPrefixExactMatch() |
||
214 | } |
||
215 |