| Total Complexity | 7 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class BaseTestCase extends TestCase |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Files created during tests that should be unlinked during tear down. |
||
| 11 | * |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | protected $createdFiles = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Register a created file that should be unlinked during treardown. |
||
| 18 | * |
||
| 19 | * @param string $path |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | protected function registerCreatedFile($path) |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Unlink all registered files. |
||
| 30 | * |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | protected function removeRegisteredFiles() |
||
| 52 |