We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9479179 commit a860c74Copy full SHA for a860c74
1 file changed
tests/Core/Ruleset/DisplayCachedMessagesTest.php
@@ -229,18 +229,24 @@ public function testNonBlockingErrorsDoNotShowUnderSpecificCircumstances($config
229
*/
230
public static function dataSelectiveDisplayOfMessages()
231
{
232
- return [
+ $data = [
233
'Explain mode' => [
234
'configArgs' => ['-e'],
235
],
236
'Quiet mode' => [
237
'configArgs' => ['-q'],
238
239
- 'Documentation is requested' => [
240
- 'configArgs' => ['--generator=text'],
241
- ],
242
];
243
+ // Setting the `--generator` arg is only supported in CS mode.
+ if (PHP_CODESNIFFER_CBF === false) {
+ $data['Documentation is requested'] = [
244
+ 'configArgs' => ['--generator=text'],
245
+ ];
246
+ }
247
+
248
+ return $data;
249
250
}//end dataSelectiveDisplayOfMessages()
251
252
0 commit comments