10000 [DependencyInjection] Don't use return on Assert::markTestSkipped by derrabus · Pull Request #24106 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[DependencyInjection] Don't use return on Assert::markTestSkipped #24106

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

Merged
merged 1 commit into from
Sep 6, 2017

Conversation

derrabus
Copy link
Member
@derrabus derrabus commented Sep 5, 2017
Q A
Branch? 3.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets none
License MIT
Doc PR N/A

Removed an unnecessary return statement. Assert::markTestSkipped() will always throw an exception, so there's no need for a return statement here. And even if that method had a return value: A unit test is not supposed to return anything.

@fabpot
Copy link
Member
fabpot commented Sep 6, 2017

Good catch, thanks @derrabus.

@fabpot fabpot merged commit 9cadeb8 into symfony:3.3 Sep 6, 2017
fabpot added a commit that referenced this pull request Sep 6, 2017
…stSkipped (derrabus)

This PR was merged into the 3.3 branch.

Discussion
----------

[DependencyInjection] Don't use return on Assert::markTestSkipped

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        | N/A

Removed an unnecessary return statement. `Assert::markTestSkipped()` will always throw an exception, so there's no need for a return statement here. And even if that method had a return value: A unit test is not supposed to return anything.

Commits
-------

9cadeb8 Don't use return on Assert::markTestSkipped.
@derrabus derrabus deleted the 3.3-return-mark-test-skipped branch September 6, 2017 06:22
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.

3 participants
0