1 | <?php declare(strict_types=1); |
||
10 | abstract class TestCase extends PHPUnitTestCase |
||
11 | { |
||
12 | const DEFAULT_AWAIT_TIMEOUT = 60; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $baseTmpDir; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $tmpDir; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $tmpNamespace; |
||
28 | |||
29 | 71 | protected function setUp(): void |
|
45 | |||
46 | 71 | protected function tearDown(): void |
|
54 | |||
55 | /** |
||
56 | * @return array |
||
57 | */ |
||
58 | public function provideTrueFalse(): array |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | 71 | protected function getSysTempDir(): string |
|
81 | |||
82 | /** |
||
83 | * @param string $dir |
||
84 | */ |
||
85 | 68 | protected function rmdir(string $dir): void |
|
104 | |||
105 | /** |
||
106 | * @return string |
||
107 | */ |
||
108 | 68 | protected function getTmpDir(): string |
|
116 | |||
117 | /** |
||
118 | * @return string |
||
119 | */ |
||
120 | 67 | protected function getRandomNameSpace(): string |
|
124 | |||
125 | /** |
||
126 | * @param string $path |
||
127 | * @return array |
||
128 | */ |
||
129 | 67 | protected function getFilesInDirectory(string $path): array |
|
146 | |||
147 | protected static function waitUntilTheNextSecond(): void |
||
154 | } |
||
155 |