* Dariusz Rumiński * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace PhpCsFixer\Tests\Fixer\Comment; use PhpCsFixer\Tests\Test\AbstractFixerTestCase; /** * @author Kuba Werłos * * @internal * * @covers \PhpCsFixer\Fixer\Comment\CommentToPhpdocFixer * * @extends AbstractFixerTestCase<\PhpCsFixer\Fixer\Comment\CommentToPhpdocFixer> * * @phpstan-import-type _AutogeneratedInputConfiguration from \PhpCsFixer\Fixer\Comment\CommentToPhpdocFixer */ final class CommentToPhpdocFixerTest extends AbstractFixerTestCase { /** * @param _AutogeneratedInputConfiguration $config * * @dataProvider provideFixCases */ public function testFix(string $expected, ?string $input = null, array $config = []): void { $this->fixer->configure($config); $this->doTest($expected, $input); } public static function provideFixCases(): iterable { yield [ ' ['todo']], ]; yield [ <<<'EOT' ['todo']], ]; yield [ <<<'EOT' ['todo']], ]; yield [ <<<'EOT' ['todo']], ]; yield [ ' $bar */ use Bar; }', ' $bar */ use Bar; }', ]; } }