* 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\StringNotation; use PhpCsFixer\Tests\Test\AbstractFixerTestCase; /** * @author Filippo Tessarotto * * @internal * * @covers \PhpCsFixer\Fixer\StringNotation\EscapeImplicitBackslashesFixer * * @extends AbstractFixerTestCase<\PhpCsFixer\Fixer\StringNotation\EscapeImplicitBackslashesFixer> * * @phpstan-import-type _AutogeneratedInputConfiguration from \PhpCsFixer\Fixer\StringNotation\EscapeImplicitBackslashesFixer */ final class EscapeImplicitBackslashesFixerTest extends AbstractFixerTestCase { /** * @param _AutogeneratedInputConfiguration $configuration * * @dataProvider provideFixCases */ public function testFix(string $expected, ?string $input = null, array $configuration = []): void { $this->fixer->configure($configuration); $this->doTest($expected, $input); } public static function provideFixCases(): iterable { yield [ <<<'EOF' true], ]; yield [ <<<'EOF' false], ]; yield [ <<<'EOF' false], ]; yield [ <<<'EOF' true], ]; yield [ <<<'EOF' false], ]; yield [ <<<'EOF' false], ]; yield [ <<<'EOF' true], ]; yield [ <<<'EOF' false], ]; yield [ <<<'EOF' false], ]; yield [ <<<'EOF' true], ]; yield [ <<<'EOF' [ '