You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'expectedStdout' => 'Checked 1 XML documentation file. Found incorrect code examples in 1.' . PHP_EOL,
251
251
'expectedStderr' => 'Errors found while processing .*?[/\\\\]CheckCodeExamplesStandard[/\\\\]Docs[/\\\\]Examples[/\\\\]IncorrectInvalidExampleStandard\.xml\R\s*\R\s*ERROR: Code block is invalid and PHPCS should have returned an error message, but instead it returned nothing\.\R\s*Code block title: "Invalid: invalid code examples\."\R\s*Code block content: "function sniffValidationWillPass\(\) \{\}"\R\s*\R',
252
252
],
253
253
];
@@ -261,10 +261,11 @@ public static function dataRunWithoutMockingCheckClass(): array
261
261
* @param array<string> $xmlDocs XML doc files to process.
262
262
* @param array<bool> $validationResults Validation results for each doc file.
263
263
* @param int $expectedExitCode Expected exit code from the run() method.
'expectedStdout' => 'Checked 1 XML documentation file. Found incorrect code examples in 1.' . PHP_EOL,
151
155
'expectedStderr' => '`Errors found while processing .*?Tests/Fixtures/DocCodeExamples/CheckCodeExamplesStandard/Docs/Examples/IncorrectValidExampleStandard\.xml`',
152
156
],
153
157
'Directory with valid and invalid XML files (empty file ignored via --ignore-sniffs)' => [
'expectedStdout' => 'Checked 6 XML documentation files. Found incorrect code examples in 3.' . PHP_EOL,
156
161
'expectedStderr' => '`Errors found while processing .*?Tests/Fixtures/DocCodeExamples/CheckCodeExamplesStandard/Docs/Examples/IncorrectInvalidExampleStandard\.xml`',
0 commit comments