Skip to content

[PhpUnitBridge] clarify silencing deprecations in tests #7323

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
Jan 2, 2018

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jan 6, 2017

This resolves #7312.

* Make its data provider start with ``provideLegacy*()`` or ``getLegacy*()``.
.. note::

You can make your data provider start with ``provideLegacy*()`` or ``getLegacy*()``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to have more information about this:

  • If I name a data provider as provideLegacy() and getLegacy() ... will the tests that use that provider be considered legacy automatically?
  • If I declare a test as legacy ... am I required to call its data provider as provideLegacy() and getLegacy() too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, any comment about my questions? Thanks!

@xabbuh xabbuh added this to the 2.7 milestone May 12, 2017
@xabbuh
Copy link
Member Author

xabbuh commented Jul 12, 2017

@javiereguiluz Sorry for the delay. I pushed an update here. Do you think it's more clear now?

code, it is not required to choose a special naming just because the
test being fed by the data provider is marked as legacy.

Also be aware that choosing one of the two legacy prefixes will not mark
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"one of the" => "one of these"?

@javiereguiluz
Copy link
Member

Thank you Christian.

@javiereguiluz javiereguiluz merged commit fe063c6 into symfony:2.7 Jan 2, 2018
javiereguiluz added a commit that referenced this pull request Jan 2, 2018
…xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[PhpUnitBridge] clarify silencing deprecations in tests

This resolves #7312.

Commits
-------

fe063c6 clarify silencing deprecations in tests
@xabbuh xabbuh deleted the issue-7312 branch January 2, 2018 15:52
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.

4 participants