16 lines
438 B
PHP
16 lines
438 B
PHP
<?php
|
|
|
|
namespace DigiComp\PhpCodesniffer\DigiComp\Sniffs\Commenting;
|
|
|
|
use SlevomatCodingStandard\Sniffs\TestCase;
|
|
|
|
class VariableCommentSniffTest extends TestCase
|
|
{
|
|
public function testErrors(): void
|
|
{
|
|
$report = self::checkFile(__DIR__ . '/data/comments.php');
|
|
var_dump($report->getErrors());
|
|
self::assertCount(1, $report->getWarnings()[20][6]);
|
|
self::assertCount(2, $report->getErrors());
|
|
}
|
|
}
|