Codegento Who Let Mage Out Of The Cage?


Writing a PHPUnit Test Against Magento

Posted by Jason Evans

We write PHPUnit tests for all the Models, Blocks and Helpers we write. The primary benefit of doing this is to prove a method works as expected.  This allows us to refactor code and prove the method still works as expected (i.e. regression test).  Another benefit is being able to run a full automated regression [...]