tests/Formatter/MarkdownFormatterTest.php
/**
     * NEXT_MAJOR: Remove the group when deleting FormatterInterface.
     *
     * @group legacy
     */
Remove the group when deleting FormatterInterface.
@group legacy
Remove the group when deleting FormatterInterface . @group legacy
public function testFormatter(): void
    {
        $parser = $this->createMock(MarkdownParserInterface::class);
        $parser->expects(static::any())->method('transformMarkdown')->willReturn('<b>Salut</b>');
        $formatter = new MarkdownFormatter($parser);
        static::assertSame('<b>Salut</b>', $formatter->transform('*Salut*'));
    }
public function testFormatter ( ) : void { $ parser = $ this -> createMock ( MarkdownParserInterface :: class ) ; $ parser -> expects ( static :: any ( ) ) -> method ( 'transformMarkdown' ) -> willReturn ( '<b>Salut</b>' ) ; $ formatter = new MarkdownFormatter ( $ parser ) ; static :: assertSame ( '<b>Salut</b>' , $ formatter -> transform ( '*Salut*' ) ) ; }
NEXT_MAJOR: Remove the group when deleting FormatterInterface.
NEXT_MAJOR : Remove the group when deleting FormatterInterface .