* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Symfony\CS\Tests\Fixer\PSR2; use Symfony\CS\Tests\Fixer\AbstractFixerTestBase; class VisibilityFixerTest extends AbstractFixerTestBase { public function testFixProperties() { $expected = <<<'EOF' makeTest($expected, $input); } public function testFixPropertiesAfterMethod() { $expected = <<<'EOF' makeTest($expected); } public function testFixMethods() { $expected = <<<'EOF' makeTest($expected, $input); } public function testLeaveFunctionsAlone() { $expected = <<<'EOF' makeTest($expected); } public function testLeaveFunctionsAloneWithVariablesMatchingOopWords() { $expected = <<<'EOF' makeTest($expected); } public function testLeaveFunctionsAloneInsideConditionals() { $expected = <<<'EOF' makeTest($expected); } public function testLeaveFunctionsAloneInsideConditionalsWithOopWordInComment() { $expected = <<<'EOF' makeTest($expected); } public function testLeaveFunctionsAloneWithOopWordInComment() { $expected = <<<'EOF' makeTest($expected); } public function testLeaveFunctionsAloneOutsideClassesWithOopWordInInlineHtml() { $expected = <<<'EOF'
makeTest($expected); } public function testLeaveFunctionsAloneOutsideClassesWithOopWordInStringValue() { $expected = <<<'EOF' makeTest($expected); } public function testLeaveFunctionsAloneOutsideClassesWithOopWordInFunctionName() { $expected = <<<'EOF' makeTest($expected); } /** * @author Dariusz Rumiński */ public function testLeaveFunctionsAloneAfterClass() { $expected = <<<'EOF' makeTest($expected); } /** * @author Dariusz Rumiński */ public function testCurlyOpenSyntax() { $expected = <<<'EOF' makeTest($expected); } /** * @author Dariusz Rumiński */ public function testDollarOpenCurlyBracesSyntax() { $expected = <<<'EOF' makeTest($expected); } /** * @author Dariusz Rumiński */ public function testLeaveJavascriptOutsidePhpAlone() { $expected = <<<'EOF' EOF; $this->makeTest($expected); } /** * @author Dariusz Rumiński */ public function testLeaveJavascriptInStringAlone() { $expected = <<<'EOF' function foo(bar) { alert(bar); } '; } EOF; $this->makeTest($expected); } /** * @author Dariusz Rumiński */ public function testLeaveJavascriptInVariableAlone() { $expected = <<<'EOF' function foo(bar) { alert(bar); } JAVASCRIPT; return $script; } } EOF; $this->makeTest($expected); } /** * @author Dariusz Rumiński */ public function testFixCommaSeparatedProperty() { $expected = <<<'EOF' makeTest($expected, $input); } public function testFixesVarDeclarationsWithArrayValue() { $expected = <<<'EOF' makeTest($expected, $input); } }