I will use atoum because I wrote about it some times ago, Unit test with atoum installed with composer. This post will present a ruby script which is compatible with folder and files structures. It’s a very simple script so it will be easy to adapt to PHPUnit if you need.
Atoum is a great unit testing framework for php made by mageekguy and Sublime Text 2 a must have text editor. I was looking for a plugin which can execute tests without leaving the editor like the existing vim-plugin. I couldn’t find one.
Why to use composer when we can get a phar single file ? Well, phar file is great, really great which works very good. But I think it’s much easier to use composer to keep my packages updated and organized. It’s also very easy to create a new projet, we just need the composer.json ! If we only need atoum, it’s better to install the phar file with wget http://downloads.atoum.org/nightly/mageekguy.atoum.phar and keep it updated with php -d phar.readonly=0 mageekguy.atoum.phar --update.