Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function testExecute() |
||
23 | { |
||
24 | $config = sys_get_temp_dir() . DIRECTORY_SEPARATOR . md5(mt_rand(0, 9999)) . '.json'; |
||
25 | $configure = new Configuration(); |
||
26 | $output = new DummyOutput(); |
||
27 | $input = new ArrayInput(['--configuration' => $config]); |
||
28 | |||
29 | $configure->setIO(new NullIO()); |
||
30 | $configure->run($input, $output); |
||
31 | |||
32 | $this->assertTrue(file_exists($config)); |
||
33 | |||
34 | unlink($config); |
||
35 | } |
||
36 | } |
||
37 |