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

improve the error message about dataProvider #806

Open
Tracked by #789
CedCannes opened this issue Apr 10, 2018 · 0 comments
Open
Tracked by #789

improve the error message about dataProvider #806

CedCannes opened this issue Apr 10, 2018 · 0 comments
Milestone

Comments

@CedCannes
Copy link
Contributor

CedCannes commented Apr 10, 2018

I forgot to put an @ in front of the annotation dataprovider

/**
* dataProvider removeEmojiDataProvider
*/
 public function testRemoveEmoji($text, $excepted)

so I didn't have a dataprovider configured for my test method which is still waiting for arguments.

and I saw this error :
Error: Could not generate a data provider for Tests\Units\EmojiToolbox::testRemoveEmoji() because it has at least one argument which is not type-hinted with a class or interface name

That message didn't help me find the reason for the problem.
Maybe somehting like
" There is no dataprovider configured to provide arguments to the test method xxx "
or
"a dataprovider is expected to provide the arguments to the xxx test method"

Issue might be referenced here :
#789

@Grummfy Grummfy added this to the 3.4.0 milestone Apr 10, 2018
@Grummfy Grummfy modified the milestones: 3.4.0, 4.1.0 Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants