1 | <?php |
||
18 | abstract class RealFileTestCase extends TestCase |
||
19 | { |
||
20 | const TEST_DATA_PATH = '/tmp/data/'; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected static $dir; |
||
26 | |||
27 | public static function setUpBeforeClass() |
||
31 | |||
32 | public static function tearDownAfterClass() |
||
38 | |||
39 | /** |
||
40 | * Get the directory used for testing file io |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | private static function getTestDir() |
||
53 | |||
54 | /** |
||
55 | * Delete the folder and all files/folders within it |
||
56 | * |
||
57 | * @param string $path |
||
58 | * |
||
59 | * @return bool |
||
60 | */ |
||
61 | private static function rmDirRecursive($path) |
||
69 | |||
70 | /** |
||
71 | * @param string $path |
||
72 | * @param string|null $contents |
||
73 | * |
||
74 | * @return LocalFile |
||
75 | */ |
||
76 | protected function makeFile($path, $contents = null) |
||
84 | } |
||
85 |