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