Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests/AbstractMethodUnitTest: new expectRunTimeException() helper method #210

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jan 2, 2024

Description

This commit introduces a new expectRunTimeException() test helper method to allow for expecting a PHPCS native PHP_CodeSniffer\Exceptions\RuntimeException in a PHPUnit cross-version compatible manner.

Includes implementation of the new method in the few test classes which currently need it (and which extend the AbstractMethodUnitTest class).

Suggested changelog entry

N/A

…ethod

This commit introduces a new `expectRunTimeException()` test helper method to allow for expecting a PHPCS native `PHP_CodeSniffer\Exceptions\RuntimeException` in a PHPUnit cross-version compatible manner.

Includes implementation of the new method in the few test classes which currently need it (and which extend the `AbstractMethodUnitTest` class).
@jrfnl jrfnl added this to the 3.x Next milestone Jan 2, 2024
@jrfnl jrfnl merged commit a6bed33 into master Jan 2, 2024
46 checks passed
@jrfnl jrfnl deleted the feature/abstractmethodunittest-new-expectruntimeexception-method branch January 2, 2024 12:00
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.

1 participant