Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function testWrite() : void |
||
21 | { |
||
22 | $change1Text = uniqid('change1', true); |
||
23 | $change2Text = uniqid('change2', true); |
||
24 | |||
25 | $output = $this->createMock(OutputInterface::class); |
||
26 | $output->expects(self::at(0)) |
||
27 | ->method('writeln') |
||
28 | ->with(sprintf('[BC] REMOVED: %s', $change1Text)); |
||
|
|||
29 | $output->expects(self::at(1)) |
||
30 | ->method('writeln') |
||
31 | ->with(sprintf(' ADDED: %s', $change2Text)); |
||
32 | |||
33 | (new SymfonyConsoleTextFormatter($output))->write(Changes::fromArray([ |
||
34 | Change::removed($change1Text, true), |
||
35 | Change::added($change2Text, false), |
||
36 | ])); |
||
39 |