Conditions | 1 |
Paths | 1 |
Total Lines | 29 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testRightColumnsHeadersNamesAfterItemConverter() |
||
19 | { |
||
20 | $data = array( |
||
21 | array( |
||
22 | 'firstname' => 'John', |
||
23 | 'lastname' => 'Doe' |
||
24 | ), |
||
25 | array( |
||
26 | 'firstname' => 'Ivan', |
||
27 | 'lastname' => 'Sidorov' |
||
28 | ) |
||
29 | ); |
||
30 | $reader = new ArrayReader($data); |
||
31 | |||
32 | $output = new BufferedOutput(); |
||
33 | |||
34 | $table = $this->getMockBuilder('Symfony\Component\Console\Helper\Table') |
||
35 | ->disableOriginalConstructor() |
||
36 | ->getMock(); |
||
37 | |||
38 | $table->expects($this->at(2)) |
||
39 | ->method('addRow'); |
||
40 | |||
41 | $workflow = new StepAggregator($reader); |
||
42 | $workflow |
||
43 | ->addWriter(new ConsoleTableWriter($output, $table)) |
||
44 | ->process() |
||
45 | ; |
||
46 | } |
||
47 | } |
||
48 |