| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function testExecute(): void |
||
| 29 | { |
||
| 30 | $this->expectException(Exception::class); |
||
| 31 | |||
| 32 | $config = $this->createConfigMock(true); |
||
| 33 | $io = $this->createIOMock(); |
||
| 34 | $repository = $this->createRepositoryMock(); |
||
| 35 | $action = new Action('\\' . Debug::class); |
||
| 36 | $infoOperator = $this->createGitInfoOperator('1.0.0'); |
||
| 37 | |||
| 38 | $io->expects($this->once())->method('getArguments')->willReturn(['foo' => 'bar']); |
||
| 39 | $io->expects($this->atLeast(3))->method('write'); |
||
| 40 | $repository->expects($this->exactly(1))->method('getInfoOperator')->willReturn($infoOperator); |
||
| 41 | |||
| 42 | $debug = new Failure(); |
||
| 43 | $debug->execute($config, $io, $repository, $action); |
||
| 44 | } |
||
| 46 |