Skip to content

Commit d33612c

Browse files
committed
Cleanup
1 parent 700d107 commit d33612c

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

tests/Sniffs/ControlStructures/YodaComparisonSniffTest.php

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,12 @@ public function testCorrectFile()
1111
$this->assertNoSniffErrorInFile($resultFile);
1212
}
1313

14-
/**
15-
* @return int[][]
16-
*/
17-
public function dataIncorrectFile(): array
14+
public function testIncorrectFile()
1815
{
19-
$lineNumbers = [];
16+
$resultFile = $this->checkFile(__DIR__ . '/data/allYodaComparisons.php');
2017
foreach (range(3, 33) as $lineNumber) {
21-
$lineNumbers[$lineNumber] = [$lineNumber];
18+
$this->assertSniffError($resultFile, $lineNumber, YodaComparisonSniff::CODE_YODA_COMPARISON);
2219
}
23-
24-
return $lineNumbers;
25-
}
26-
27-
/**
28-
* @dataProvider dataIncorrectFile
29-
* @param int $lineNumber
30-
*/
31-
public function testIncorrectFile(int $lineNumber)
32-
{
33-
$resultFile = $this->checkFile(__DIR__ . '/data/allYodaComparisons.php');
34-
$this->assertSniffError($resultFile, $lineNumber, YodaComparisonSniff::CODE_YODA_COMPARISON);
3520
}
3621

3722
public function testFixable()

0 commit comments

Comments
 (0)