Skip to content

ExitCodeTest: add extra tests#1376

Open
jrfnl wants to merge 1 commit into4.xfrom
feature/1372-exitcode-add-extra-tests
Open

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

Conversation

@jrfnl
Copy link
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

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