diff --git a/tests/Sniffs/Namespaces/UseInAlphabeticalOrder/UseInAlphabeticalOrderSniffTest.php b/tests/Sniffs/Namespaces/UseInAlphabeticalOrder/UseInAlphabeticalOrderSniffTest.php index c6b8166..3aa3f88 100644 --- a/tests/Sniffs/Namespaces/UseInAlphabeticalOrder/UseInAlphabeticalOrderSniffTest.php +++ b/tests/Sniffs/Namespaces/UseInAlphabeticalOrder/UseInAlphabeticalOrderSniffTest.php @@ -25,8 +25,10 @@ public function testDetection() { $this->assertSame(1, $this->codeSnifferRunner->getErrorCountInFile(__DIR__ . '/wrong.php')); $this->assertSame(1, $this->codeSnifferRunner->getErrorCountInFile(__DIR__ . '/wrong2.php')); + $this->assertSame(1, $this->codeSnifferRunner->getErrorCountInFile(__DIR__ . '/wrong3.php')); $this->assertSame(0, $this->codeSnifferRunner->getErrorCountInFile(__DIR__ . '/correct.php')); $this->assertSame(0, $this->codeSnifferRunner->getErrorCountInFile(__DIR__ . '/correct2.php')); + $this->assertSame(0, $this->codeSnifferRunner->getErrorCountInFile(__DIR__ . '/correct3.php')); } } diff --git a/tests/Sniffs/Namespaces/UseInAlphabeticalOrder/correct3.php b/tests/Sniffs/Namespaces/UseInAlphabeticalOrder/correct3.php new file mode 100644 index 0000000..2c60a5e --- /dev/null +++ b/tests/Sniffs/Namespaces/UseInAlphabeticalOrder/correct3.php @@ -0,0 +1,13 @@ +