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/UtilityMethodTestCase::skipJSCSSTestsOnPHPCS4: get rid of "risky test" warning #242

Merged
merged 1 commit into from
Dec 22, 2020

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 22, 2020

When the @doesNotPerformAssertions annotation is used, the test shows as risky when run in combination with PHPCS 4.x as it does perform assertions (expects an exception), but removing the annotation would make the test report as risky when run in combination with PHPCS 3.x as in that case, it didn't perform an assertion.

While a little hackish, this small tweak gets rid of the warnings in all circumstances.

@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Dec 22, 2020
…y test" warning

When the `@doesNotPerformAssertions` annotation is used, the test shows as risky when run in combination with PHPCS 4.x as it does perform assertions (expects an exception), but removing the annotation would make the test as risky when run in combination with PHPCS 3.x as in that case, it didn't perform an assertion.

While a little hackish, this small tweak gets rid of the warnings in all circumstances.
@jrfnl jrfnl force-pushed the testutils/skipjscsstest-avoid-risky-warning branch from 17feba0 to 9cf84a1 Compare December 22, 2020 20:05
@jrfnl jrfnl merged commit edf6a35 into develop Dec 22, 2020
@jrfnl jrfnl deleted the testutils/skipjscsstest-avoid-risky-warning branch December 22, 2020 20:12
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.

None yet

1 participant