Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[VarDumper] fix PHP 7 tests #17775

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

Closed
wants to merge 1 commit into from
Closed

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 12, 2016

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

I think this is only a short term solution. We should rather find a way to have the tests not rely on the order of the dumped properties or ensure in the component that the order does not change. But this at least makes our test suite reliable again.

@nicolas-grekas
Copy link
Member

I propose to make that patch simpler: just don't test for timed_out, blocked and eof keys, they don't provide any specific behavior coverage I think

@xabbuh
Copy link
Member Author

xabbuh commented Feb 12, 2016

Well, but they are part of the output. Do you wanna cover this with a regex? Or is it possible to let the dumpers not dump these information?

@nicolas-grekas
Copy link
Member

It's possible to tell phpunit to ignore these: just remove the lines in the expected format, the %A should allow that

@xabbuh
Copy link
Member Author

xabbuh commented Feb 12, 2016

I see, I'll try that tonight. If you happen to find some time before, feel free to take this over.

@nicolas-grekas
Copy link
Member

Replaced by #17781

@xabbuh xabbuh deleted the var-dumper-tests branch February 12, 2016 21:46
fabpot added a commit that referenced this pull request Feb 13, 2016
This PR was merged into the 2.7 branch.

Discussion
----------

[VarDumper] Fix tests on PHP 7

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

Supersedes #17775

Commits
-------

5d433ca [VarDumper] Fix tests on PHP 7
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.