| 1 | <?php |
||
| 19 | class FileUtil { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Wraps the static function \OCP\Files::buildNotExistingFileName() in order to be able to test everything else. |
||
| 23 | * @codeCoverageIgnore |
||
| 24 | * |
||
| 25 | * @param string $filePath |
||
| 26 | * @param string $fileName |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function buildNotExistingFilename($filePath, $fileName) { |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Executes the exec function with a remove statement for a given file path. |
||
| 35 | * @codeCoverageIgnore |
||
| 36 | * |
||
| 37 | * @param string $pathToFile |
||
| 38 | */ |
||
| 39 | public function execRemove($pathToFile) { |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Wraps the static file_get_contents method of php. |
||
| 45 | * @codeCoverageIgnore |
||
| 46 | * |
||
| 47 | * @param string $pathToFile |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function getFileContents($pathToFile) { |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Wraps the static file_exists method of php. |
||
| 56 | * @codeCoverageIgnore |
||
| 57 | * |
||
| 58 | * @param string $pathToFile |
||
| 59 | * @return boolean |
||
| 60 | */ |
||
| 61 | public function fileExists($pathToFile) { |
||
| 64 | } |