| 1 | <?php |
||
| 16 | abstract class AbstractFileTestCase extends TestCase |
||
| 17 | { |
||
| 18 | const TEST_DATA_PATH = '/tmp/data/'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected static $dir; |
||
| 24 | |||
| 25 | public static function setUpBeforeClass() |
||
| 29 | |||
| 30 | public static function tearDownAfterClass() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get the directory used for testing file io |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | private static function getTestDir() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Delete the folder and all files/folders within it |
||
| 54 | * |
||
| 55 | * @param string $path |
||
| 56 | * |
||
| 57 | * @return bool |
||
| 58 | */ |
||
| 59 | private static function rmDirRecursive($path) |
||
| 67 | } |
||
| 68 |