* 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\NamespaceNotation; use PhpCsFixer\Tests\Test\AbstractFixerTestCase; use PhpCsFixer\WhitespacesFixerConfig; /** * @author Graham Campbell * * @internal * * @covers \PhpCsFixer\Fixer\NamespaceNotation\NoBlankLinesBeforeNamespaceFixer * * @extends AbstractFixerTestCase<\PhpCsFixer\Fixer\NamespaceNotation\NoBlankLinesBeforeNamespaceFixer> */ final class NoBlankLinesBeforeNamespaceFixerTest extends AbstractFixerTestCase { /** * @dataProvider provideFixCases */ public function testFix(string $expected, ?string $input = null, ?WhitespacesFixerConfig $whitespaces = null): void { if (null !== $whitespaces) { $this->fixer->setWhitespacesConfig($whitespaces); } $this->doTest($expected, $input); } /** * @return iterable */ public static function provideFixCases(): iterable { yield [' * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace PhpCsFixer\Fixer\Contrib; EOF; $input = <<<'EOF' * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace PhpCsFixer\Fixer\Contrib; EOF; $this->doTest($expected, $input); } }