* 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\Whitespace; use PhpCsFixer\Tests\Test\AbstractFixerTestCase; use PhpCsFixer\WhitespacesFixerConfig; /** * @author Gregor Harlan * * @internal * * @covers \PhpCsFixer\Fixer\Whitespace\HeredocIndentationFixer * * @extends AbstractFixerTestCase<\PhpCsFixer\Fixer\Whitespace\HeredocIndentationFixer> * * @phpstan-import-type _AutogeneratedInputConfiguration from \PhpCsFixer\Fixer\Whitespace\HeredocIndentationFixer */ final class HeredocIndentationFixerTest 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 [ <<<'EXPECTED' 'same_as_start'], ]; yield [ <<<'EXPECTED' 'same_as_start'], ]; } public function testWithWhitespacesConfig(): void { $this->fixer->setWhitespacesConfig(new WhitespacesFixerConfig("\t")); $expected = <<doTest($expected, $input); } }