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