Skip to content

ExitCodeTest: add extra tests#1376

Merged
jrfnl merged 1 commit into4.xfrom
feature/1372-exitcode-add-extra-tests
Mar 5, 2026
Merged

ExitCodeTest: add extra tests#1376
jrfnl merged 1 commit into4.xfrom
feature/1372-exitcode-add-extra-tests

Conversation

@jrfnl
Copy link
Copy Markdown
Member

@jrfnl jrfnl commented Mar 1, 2026

Description

Add extra tests with various variations of CLI flags suppressing either warnings or errors to confirm that:

  • When warnings are suppressed, any remaining warnings do not influence the exit code.
  • When errors are suppressed, any remaining errors do not influence the exit code.

Tests cover both the phpcs as well as the phpcbf command.

Suggested changelog entry

N/A

Related issues/external references

Closes #1372

@jrfnl jrfnl added this to the 4.0.2 milestone Mar 1, 2026
@jrfnl jrfnl merged commit ce8f782 into 4.x Mar 5, 2026
71 checks passed
@jrfnl jrfnl deleted the feature/1372-exitcode-add-extra-tests branch March 5, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Getting incorrect Exit Code with PHPCBF

1 participant