Skip to content

Conversation

nicolas-grekas
Copy link
Member

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

See sebastianbergmann/phpunit#1821

@stof
Copy link
Member

stof commented Oct 6, 2015

@nicolas-grekas IMO, we should refactor the tests to avoid creating mocks in the data provider. In my experience, mocks created in data providers create weird edge cases and issues.

@nicolas-grekas
Copy link
Member Author

The issue with them is sebastianbergmann/phpunit#1821, which is fixed in phpunit 5.0.
The data provider is fine, this is just what's required to get 2.3 green again, I'd like to merge it now in fact.

@nicolas-grekas nicolas-grekas merged commit 742547c into symfony:2.3 Oct 6, 2015
nicolas-grekas added a commit that referenced this pull request Oct 6, 2015
…/phpunit#1821 (nicolas-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

[Security\Core] Fix test failure after sebastianbergmann/phpunit#1821

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

See sebastianbergmann/phpunit#1821

Commits
-------

742547c [Security\Core] Fix test failure after sebastianbergmann/phpunit#1821
@nicolas-grekas nicolas-grekas deleted the fixmock branch October 6, 2015 08:29
@nicolas-grekas
Copy link
Member Author

@stof I merged this PR to get green tests back asap. Feel free to open an other PR if you want to refactor this test.

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