Skip to content
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

Infer data provider's name automatically - with a prefix? #3257

Closed
Wes0617 opened this issue Aug 18, 2018 · 3 comments
Closed

Infer data provider's name automatically - with a prefix? #3257

Wes0617 opened this issue Aug 18, 2018 · 3 comments

Comments

@Wes0617
Copy link
Contributor

Wes0617 commented Aug 18, 2018

For example, I would like to omit the /** @dataProvider */ here since the methods' name matches.

public function data_bar(){}

/** @dataProvider data_bar */
public function test_bar($v1, $v2){}

In other words, if the test method name is test$n and a method exist as data$n, then phpunit would use it as data provider for test$n, unless overridden by the @dataProvider annotation.

Would this be feasible?

Thank you in advance.

@Wes0617
Copy link
Contributor Author

Wes0617 commented Aug 18, 2018

Alternatively, #1093

@stale
Copy link

stale bot commented Oct 17, 2018

This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 17, 2018
@sebastianbergmann
Copy link
Owner

Not interested, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants