* 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\Phpdoc; use PhpCsFixer\Tests\Test\AbstractFixerTestCase; /** * @author Graham Campbell * * @internal * * @covers \PhpCsFixer\AbstractPhpdocTypesFixer * @covers \PhpCsFixer\Fixer\Phpdoc\PhpdocScalarFixer */ final class PhpdocScalarFixerTest extends AbstractFixerTestCase { public function testBasicFix() { $expected = <<<'EOF' doTest($expected, $input); } public function testPropertyFix() { $expected = <<<'EOF' doTest($expected, $input); } public function testDoNotModifyVariables() { $expected = <<<'EOF' doTest($expected, $input); } public function testFixWithTabsOnOneLine() { $expected = "doTest($expected, $input); } public function testFixMoreThings() { $expected = <<<'EOF' doTest($expected, $input); } public function testFixVar() { $expected = <<<'EOF' doTest($expected, $input); } public function testFixVarWithMoreStuff() { $expected = <<<'EOF' doTest($expected, $input); } public function testFixType() { $expected = <<<'EOF' doTest($expected, $input); } public function testDoNotFix() { $expected = <<<'EOF' doTest($expected); } public function testComplexMix() { $expected = <<<'EOF' doTest($expected, $input); } public function testDoNotModifyComplexTag() { $expected = <<<'EOF' doTest($expected); } public function testDoNotModifyStrings() { $expected = <<<'EOF' doTest($expected); } public function testEmptyDocBlock() { $expected = <<<'EOF' doTest($expected); } public function testWrongCasedPhpdocTagIsNotAltered() { $expected = <<<'EOF' doTest($expected); } public function testInlineDoc() { $expected = <<<'EOF' doTest($expected, $input); } public function testFixCallback() { $expected = <<<'EOF' fixer->configure(['types' => ['boolean', 'callback', 'double', 'integer', 'real', 'str']]); $this->doTest($expected, $input); } }