Open jonmchan opened 10 years ago
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.
@DataProvider
Take a look:
https://phpunit.de/manual/3.7/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers
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