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