Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function testRun() |
||
24 | { |
||
25 | $app = $this->createMock(Application::class); |
||
26 | $app->expects($this->once())->method('run')->willReturn(1); |
||
27 | $factory = $this->createMock(ConsoleApplicationFactoryInterface::class); |
||
28 | $factory->expects($this->once())->method('create')->willReturn($app); |
||
29 | $facade = new ConsoleApplicationFacade( |
||
30 | $factory, |
||
31 | ); |
||
32 | |||
33 | $this->assertEquals(1, $facade->run()); |
||
34 | } |
||
36 |