Total Complexity | 8 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | abstract class WebTestCase extends BaseWebTestCase |
||
12 | { |
||
13 | protected function deleteTmpDir() |
||
14 | { |
||
15 | if (!file_exists($dir = sys_get_temp_dir().'/'.Kernel::VERSION)) { |
||
16 | return; |
||
17 | } |
||
18 | |||
19 | $fs = new Filesystem(); |
||
20 | $fs->remove($dir); |
||
21 | } |
||
22 | |||
23 | protected static function getContainer(): ContainerInterface |
||
31 | } |
||
32 | |||
33 | protected static function getKernelClass() |
||
34 | { |
||
35 | return AppKernel::class; |
||
36 | } |
||
37 | |||
38 | protected static function createKernel(array $options = array()) |
||
39 | { |
||
40 | $class = self::getKernelClass(); |
||
41 | |||
42 | return new $class( |
||
43 | 'default', |
||
44 | isset($options['debug']) ? $options['debug'] : true |
||
45 | ); |
||
46 | } |
||
47 | |||
48 | public function setUp(): void |
||
52 | } |
||
53 | } |
||
54 |