2022-04-30 21:27:42 +02:00
|
|
|
<?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');
|
2023-02-10 17:50:54 +01:00
|
|
|
var_dump($report->getErrors());
|
2022-04-30 21:27:42 +02:00
|
|
|
self::assertCount(1, $report->getWarnings()[20][6]);
|
2023-02-10 15:37:30 +01:00
|
|
|
self::assertCount(2, $report->getErrors());
|
2022-04-30 21:27:42 +02:00
|
|
|
}
|
|
|
|
}
|