Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | function it_writes_items(CountableReader $reader, OutputInterface $output, OutputFormatterInterface $outputFormatter) |
||
24 | { |
||
25 | $reader->count()->willReturn(2); |
||
26 | $output->isDecorated()->willReturn(true); |
||
27 | $output->getFormatter()->willReturn($outputFormatter); |
||
28 | $output->getVerbosity()->willReturn('debug'); |
||
29 | $output->write(Argument::type('string'))->shouldBeCalled(); |
||
30 | |||
31 | $this->prepare(); |
||
32 | |||
33 | $this->writeItem([ |
||
34 | 'first' => 'The first', |
||
35 | 'second' => 'Second property', |
||
36 | ]); |
||
37 | |||
38 | $this->writeItem([ |
||
39 | 'first' => 'Another first', |
||
40 | 'second' => 'Last second', |
||
41 | ]); |
||
42 | |||
43 | $this->finish(); |
||
44 | } |
||
45 | } |
||
46 |