* 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\PhpUnit; use PhpCsFixer\Tests\Test\AbstractFixerTestCase; /** * @internal * * @author Gert de Pagter * * @covers \PhpCsFixer\Fixer\PhpUnit\PhpUnitInternalClassFixer */ final class PhpUnitInternalClassFixerTest extends AbstractFixerTestCase { /** * @dataProvider provideFixCases * * @param string $expected * @param null|string $input * @param array $config */ public function testFix($expected, $input = null, $config = []) { $this->fixer->configure($config); $this->doTest($expected, $input); } public function provideFixCases() { return [ 'It does not change normal classes' => [ ' [ ' [ ' [ ' [ ' [ ' [ ' [ ' [ ' [ ' [ ' [ ' [ ' ['abstract'], ], ], 'If final is not added as an option, final classes will not be marked internal' => [ ' ['abstract'], ], ], 'If normal is not added as an option, normal classes will not be marked internal' => [ ' ['abstract'], ], ], 'It works correctly with multiple classes in one file, even when one of them is not allowed' => [ '