|
3 | 3 |
|
4 | 4 | use VariableAnalysis\Tests\BaseTestCase; |
5 | 5 |
|
6 | | -class IfConditionTest extends BaseTestCase { |
7 | | - public function testIfConditionWarnings() { |
| 6 | +class IfConditionTest extends BaseTestCase |
| 7 | +{ |
| 8 | + public function testIfConditionWarnings() |
| 9 | + { |
8 | 10 | $fixtureFile = $this->getFixture('FunctionWithIfConditionFixture.php'); |
9 | 11 | $phpcsFile = $this->prepareLocalFileForSniffs($fixtureFile); |
10 | 12 | $phpcsFile->ruleset->setSniffProperty( |
@@ -36,7 +38,8 @@ public function testIfConditionWarnings() { |
36 | 38 | $this->assertSame($expectedWarnings, $lines); |
37 | 39 | } |
38 | 40 |
|
39 | | - public function testIfConditionWarningsWithValidUndefinedVariableNames() { |
| 41 | + public function testIfConditionWarningsWithValidUndefinedVariableNames() |
| 42 | + { |
40 | 43 | $fixtureFile = $this->getFixture('FunctionWithIfConditionFixture.php'); |
41 | 44 | $phpcsFile = $this->prepareLocalFileForSniffs($fixtureFile); |
42 | 45 | $phpcsFile->ruleset->setSniffProperty( |
@@ -67,7 +70,8 @@ public function testIfConditionWarningsWithValidUndefinedVariableNames() { |
67 | 70 | $this->assertSame($expectedWarnings, $lines); |
68 | 71 | } |
69 | 72 |
|
70 | | - public function testInlineIfConditionWarnings() { |
| 73 | + public function testInlineIfConditionWarnings() |
| 74 | + { |
71 | 75 | $fixtureFile = $this->getFixture('FunctionWithInlineIfConditionFixture.php'); |
72 | 76 | $phpcsFile = $this->prepareLocalFileForSniffs($fixtureFile); |
73 | 77 | $phpcsFile->ruleset->setSniffProperty( |
@@ -99,7 +103,8 @@ public function testInlineIfConditionWarnings() { |
99 | 103 | $this->assertSame($expectedWarnings, $lines); |
100 | 104 | } |
101 | 105 |
|
102 | | - public function testInlineIfConditionWarningsWithValidUndefinedVariableNames() { |
| 106 | + public function testInlineIfConditionWarningsWithValidUndefinedVariableNames() |
| 107 | + { |
103 | 108 | $fixtureFile = $this->getFixture('FunctionWithInlineIfConditionFixture.php'); |
104 | 109 | $phpcsFile = $this->prepareLocalFileForSniffs($fixtureFile); |
105 | 110 | $phpcsFile->ruleset->setSniffProperty( |
|
0 commit comments