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

Suggestion for Tests #11

Open
jonmchan opened this issue Oct 15, 2014 · 0 comments
Open

Suggestion for Tests #11

jonmchan opened this issue Oct 15, 2014 · 0 comments

Comments

@jonmchan
Copy link

You may benefit from using @DataProvider for your tests. I believe it would save you lots of lines of code and allow you to make new scenarios by just adding 1 line of code to the array instead of having to re-write the whole assert statement.

Take a look:

https://phpunit.de/manual/3.7/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers

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

1 participant