[2.0] Write tests with atoum
Closed this issue · 16 comments
Is there a reason for choosing Atoum over PHPUnit?
@Nemesisprime is there a reason for choosing a good unit test framework instead of a bloated one? 🙀
That's friday, we can troll :p
http://prezi.com/pr_8ylm4dxxt/atoum/
I work with atoum since ~1 year, and IMO, it's far far far better than phpunit ;)
Is there a reason for choosing Atoum over PHPUnit?
atoum = 🍰
PHPUnit = 💩
No, actually, there are many reasons to prefer atoum (not Atoum), a new, simple, modern and intuitive unit test framework to an old, slow and borring PHPUnit.
@Nemesisprime If you do not test Atoum, use, very quick to learn, and once you use it, you will not be able to be separated ;)
Ha! I've opened Pandora's box here!
@Nemesisprime : The best answer? Try atoum and compare it with PHPUnit yourself.
@Nemesisprime You should give a try, otherwise... no, you have to try.
Well I understand that you've chosen the software you liked most, but this makes it very difficult for others who want to add tests. Atoum is a lot less popular then mockery (see packagist) and of course much less popular then phpunit.
I don't like submitting code without tests but learning another new test framework is not really something I fancy. There are so few tests at the moment that maybe you could reconsider... 😉
I understand, but atoum is really simple and intuitive there is only one thing to know which is really specific to atoum:
One test class = One class
Spy\TimelineBundle\Tests\Units\Foo\Class => Spy\TimelineBundle\Foo\Class
Then, mock system of atoum is more powerful than phpunit/mockery and asserters too ... and more intuitive.
I understand than you may not want to learn a new unit test framework, but learning atoum is easy and you surely love it ! :) If this is really a problem for you, i'll write tests for new features.
I don't like to make differents choices than OOP community in general, but atoum > phpunit
.
you may not want to learn a new unit test framework, but learning atoum is easy and you surely love it !
Our job is to constantly learn and try new thing be it just to see what's happening elsewhere.