naneau / semver

PHP Semantic Versioning library
MIT License
73 stars 9 forks source link

Suggestion for Tests #11

Open jonmchan opened 10 years ago

jonmchan commented 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.

Take a look:

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