| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function testConfigure() |
||
| 20 | { |
||
| 21 | $event = $this->getMockBuilder('\\Composer\\Script\\Event') |
||
| 22 | ->disableOriginalConstructor() |
||
| 23 | ->getMock(); |
||
| 24 | $event->expects($this->once())->method('getIO')->willReturn(new NullIO()); |
||
| 25 | $config = sys_get_temp_dir() . DIRECTORY_SEPARATOR . md5(__FILE__); |
||
| 26 | Cmd::configure($event, $config); |
||
| 27 | |||
| 28 | $this->assertTrue(file_exists($config)); |
||
| 29 | |||
| 30 | unlink($config); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |