Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function itShouldFindAdviceAccordingToConfig() |
||
24 | { |
||
25 | $input = $this->prophesize(InputInterface::class); |
||
26 | $input->bind(Argument::any())->willReturn(); |
||
27 | $input->isInteractive()->willReturn(false); |
||
28 | $input->hasArgument(Argument::any())->willReturn(false); |
||
29 | $input->validate()->willReturn(); |
||
30 | |||
31 | $input->getArgument('applicationConfig') |
||
32 | ->willReturn(__DIR__ . '/../resources/application_config.php'); |
||
33 | |||
34 | $output = $this->getMockBuilder(OutputInterface::class) |
||
35 | ->setMethods(['writeln']) |
||
36 | ->getMockForAbstractClass(); |
||
37 | |||
38 | $output->expects($this->at(1)) |
||
39 | ->method('writeln') |
||
40 | ->with('Total <info>1</info> files to process.'); |
||
41 | |||
42 | $command = new WarmupCommand(); |
||
43 | $command->run($input->reveal(), $output); |
||
44 | } |
||
45 | } |