@@ -96,7 +96,7 @@ abstract private function somefunc() { // To verify PHPCompatibility sniff.
9696 $ output = $ commandTester ->getDisplay ();
9797 $ this ->assertMatchesRegularExpression ('/E\.* 10\.* \/ 10 \(100%\)/ ' , $ output ); // Progress.
9898 $ this ->assertMatchesRegularExpression ('/\/fixable.php/ ' , $ output ); // File.
99- $ this ->assertMatchesRegularExpression ('/ 11 ERRORS AND 1 WARNING AFFECTING 8 / ' , $ output ); // Summary.
99+ $ this ->assertMatchesRegularExpression ('/ 13 ERRORS AND 1 WARNING AFFECTING 8 / ' , $ output ); // Summary.
100100 $ this ->assertMatchesRegularExpression ('/BoilerplateComment\.NoBoilerplateComment/ ' , $ output ); // Moodle sniff.
101101 $ this ->assertMatchesRegularExpression ('/Expected MOODLE_INTERNAL check/ ' , $ output ); // Moodle sniff.
102102 $ this ->assertMatchesRegularExpression ('/print_error\(\) has been deprecated/ ' , $ output ); // Moodle sniff.
@@ -108,8 +108,9 @@ abstract private function somefunc() { // To verify PHPCompatibility sniff.
108108 $ this ->assertMatchesRegularExpression ('/Missing docblock for function somefunc/ ' , $ output ); // Moodle sniff.
109109 $ this ->assertMatchesRegularExpression ('/AbstractPrivateMethods\.Found/ ' , $ output ); // PHPCompatibility sniff.
110110 $ this ->assertMatchesRegularExpression ('/Opening brace must be the last content/ ' , $ output ); // Generic sniff.
111- $ this ->assertMatchesRegularExpression ('/Files\.EndFileNewline\.NotFound/ ' , $ output ); // Generic of file.
112- $ this ->assertMatchesRegularExpression ('/PHPCBF CAN FIX THE 4 MARKED SNIFF/ ' , $ output ); // PHPCBF note.
111+ $ this ->assertMatchesRegularExpression ('/Closing brace must not be followed by/ ' , $ output ); // PSR12 sniff.
112+ $ this ->assertMatchesRegularExpression ('/Files\.EndFileNewline\.NoneFound/ ' , $ output ); // Generic of file.
113+ $ this ->assertMatchesRegularExpression ('/PHPCBF CAN FIX THE 5 MARKED SNIFF/ ' , $ output ); // PHPCBF note.
113114 $ this ->assertMatchesRegularExpression ('/Time:.*Memory:/ ' , $ output ); // Time.
114115
115116 // Also verify display info is correct.
@@ -228,7 +229,9 @@ public function testExecuteWithExclusions()
228229 ['--exclude ' => 'moodle.Files.RequireLogin, ' .
229230 'moodle.Files.BoilerplateComment, ' .
230231 'moodle.Commenting.MissingDocblock, ' .
231- 'moodle.Commenting.FileExpectedTags ' ]
232+ 'moodle.Commenting.FileExpectedTags, ' .
233+ 'PSR12.Files.OpenTag, ' .
234+ 'PSR12.Operators.OperatorSpacing ' ]
232235 );
233236 $ this ->assertSame (0 , $ commandTester ->getStatusCode ());
234237 }
0 commit comments