Skip to content

Commit

Permalink
Amend tests to check for moodle-cs v3.4.1 new sniffs
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 8, 2024
1 parent 0ba289f commit 6f614d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Command/CodeCheckerCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ abstract private function somefunc() { // To verify PHPCompatibility sniff.
$output = $commandTester->getDisplay();
$this->assertMatchesRegularExpression('/E\.* 10\.* \/ 10 \(100%\)/', $output); // Progress.
$this->assertMatchesRegularExpression('/\/fixable.php/', $output); // File.
$this->assertMatchesRegularExpression('/ 7 ERRORS AND 1 WARNING AFFECTING 7 /', $output); // Summary.
$this->assertMatchesRegularExpression('/ 8 ERRORS AND 1 WARNING AFFECTING 8 /', $output); // Summary.
$this->assertMatchesRegularExpression('/moodle\.Files\.BoilerplateComment\.Wrong/', $output); // Moodle sniff.
$this->assertMatchesRegularExpression('/print_error\(\) has been deprecated/', $output); // Moodle sniff.
$this->assertMatchesRegularExpression('/print_object\(\) is forbidden/', $output); // Moodle sniff.
$this->assertMatchesRegularExpression('/Missing doc comment for class test/', $output); // Moodle sniff.
$this->assertMatchesRegularExpression('/AbstractPrivateMethods\.Found/', $output); // PHPCompatibility sniff.
$this->assertMatchesRegularExpression('/Files\.EndFileNewline\.NotFound/', $output); // End of file.
$this->assertMatchesRegularExpression('/PHPCBF CAN FIX THE 3 MARKED SNIFF/', $output); // PHPCBF note.
Expand Down

0 comments on commit 6f614d5

Please sign in to comment.