tests/Sniffs/Commenting/BlockPropertyComment/BlockPropertyCommentSniffTest.php 1 location
|
@@ 18-25 (lines=8) @@
|
| 15 |
|
final class BlockPropertyCommentSniffTest extends TestCase |
| 16 |
|
{ |
| 17 |
|
|
| 18 |
|
public function testDetection() |
| 19 |
|
{ |
| 20 |
|
$codeSnifferRunner = new CodeSnifferRunner(BlockPropertyCommentSniff::NAME); |
| 21 |
|
|
| 22 |
|
$this->assertSame(0, $codeSnifferRunner->getErrorCountInFile(__DIR__ . '/correct.php')); |
| 23 |
|
$this->assertSame(0, $codeSnifferRunner->getErrorCountInFile(__DIR__ . '/correct2.php')); |
| 24 |
|
$this->assertSame(1, $codeSnifferRunner->getErrorCountInFile(__DIR__ . '/wrong.php')); |
| 25 |
|
} |
| 26 |
|
|
| 27 |
|
|
| 28 |
|
public function testFixing() |
tests/Sniffs/Naming/AbstractClassName/AbstractClassNameSniffTest.php 1 location
|
@@ 15-22 (lines=8) @@
|
| 12 |
|
final class AbstractClassNameSniffTest extends TestCase |
| 13 |
|
{ |
| 14 |
|
|
| 15 |
|
public function testDetection() |
| 16 |
|
{ |
| 17 |
|
$codeSnifferRunner = new CodeSnifferRunner(AbstractClassNameSniff::NAME); |
| 18 |
|
|
| 19 |
|
$this->assertSame(0, $codeSnifferRunner->getErrorCountInFile(__DIR__ . '/correct.php')); |
| 20 |
|
$this->assertSame(0, $codeSnifferRunner->getErrorCountInFile(__DIR__ . '/correct2.php')); |
| 21 |
|
$this->assertSame(1, $codeSnifferRunner->getErrorCountInFile(__DIR__ . '/wrong.php')); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
} |
| 25 |
|
|
tests/Sniffs/WhiteSpace/InBetweenMethodSpacing/InBetweenMethodSpacingSniffTest.php 1 location
|
@@ 15-22 (lines=8) @@
|
| 12 |
|
final class InBetweenMethodSpacingSniffTest extends TestCase |
| 13 |
|
{ |
| 14 |
|
|
| 15 |
|
public function testDetection() |
| 16 |
|
{ |
| 17 |
|
$codeSnifferRunner = new CodeSnifferRunner(InBetweenMethodSpacingSniff::NAME); |
| 18 |
|
|
| 19 |
|
$this->assertSame(1, $codeSnifferRunner->getErrorCountInFile(__DIR__ . '/wrong.php')); |
| 20 |
|
$this->assertSame(1, $codeSnifferRunner->getErrorCountInFile(__DIR__ . '/wrong2.php')); |
| 21 |
|
$this->assertSame(0, $codeSnifferRunner->getErrorCountInFile(__DIR__ . '/correct.php')); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
|
| 25 |
|
public function testFixing() |