| @@ 152-159 (lines=8) @@ | ||
| 149 | ); |
|
| 150 | } |
|
| 151 | ||
| 152 | public function dataProviderForTestGetPathToRealFile() { |
|
| 153 | return array( |
|
| 154 | array('/user/files/foo/bar.txt', '/user/files/foo/bar.txt'), |
|
| 155 | array('/user/files/foo.txt', '/user/files/foo.txt'), |
|
| 156 | array('/user/files_versions/foo.txt.v543534', '/user/files/foo.txt'), |
|
| 157 | array('/user/files_versions/foo/bar.txt.v5454', '/user/files/foo/bar.txt'), |
|
| 158 | ); |
|
| 159 | } |
|
| 160 | ||
| 161 | /** |
|
| 162 | * @dataProvider dataTestBegin |
|
| @@ 175-182 (lines=8) @@ | ||
| 172 | $this->util->stripPartialFileExtension($path)); |
|
| 173 | } |
|
| 174 | ||
| 175 | public function dataTestStripPartialFileExtension() { |
|
| 176 | return array( |
|
| 177 | array('/foo/test.txt', '/foo/test.txt'), |
|
| 178 | array('/foo/test.txt.part', '/foo/test.txt'), |
|
| 179 | array('/foo/test.txt.ocTransferId7567846853.part', '/foo/test.txt'), |
|
| 180 | array('/foo/test.txt.ocTransferId7567.part', '/foo/test.txt'), |
|
| 181 | ); |
|
| 182 | } |
|
| 183 | ||
| 184 | /** |
|
| 185 | * @dataProvider provideWrapStorage |
|