Skip to content

[PhpUnitBridge] Fix time-sensitive tests that use data providers #20544

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
Nov 17, 2016

Conversation

julienfalque
Copy link
Contributor

Q A
Branch? 2.8
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

When a test uses a data provider, the @group time-sensitive annotation does not work if it is set on the method because the test name includes the data provider name by default. This was fixed in master by c344203 but not in 2.8, 3.0 and 3.1.

@julienfalque julienfalque changed the title Fix time-sensitive tests that use data providers [PhpUnitBridge] Fix time-sensitive tests that use data providers Nov 17, 2016
@xabbuh
Copy link
Member

xabbuh commented Nov 17, 2016

👍

Status: Reviewed

@stof
Copy link
Member

stof commented Nov 17, 2016

👍

@nicolas-grekas
Copy link
Member

Thank you @julienfalque.

@nicolas-grekas nicolas-grekas merged commit f376cde into symfony:2.8 Nov 17, 2016
nicolas-grekas added a commit that referenced this pull request Nov 17, 2016
…viders (julienfalque)

This PR was merged into the 2.8 branch.

Discussion
----------

[PhpUnitBridge] Fix time-sensitive tests that use data providers

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

When a test uses a data provider, the `@group time-sensitive` annotation does not work if it is set on the method because the test name includes the data provider name by default. This was fixed in master by c344203 but not in 2.8, 3.0 and 3.1.

Commits
-------

f376cde Fix time-sensitive tests that use data providers
This was referenced Nov 21, 2016
@julienfalque julienfalque deleted the fix-clockmock-tests branch November 21, 2016 13:00
@fabpot fabpot mentioned this pull request Nov 27, 2016
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.

6 participants