php goodness

Alternative PHP mock object

Posted in Short by phpgoodness on June 7, 2011

I created a small github repo where I publish the project of the weekend, PHPTestDummy.

PHPTestDummy is a framework that creates mock objects of your PHP classes. It is capable to define actions for stubs and giving information of the stub calls to be used for assertions. Is might be an alternative mock object solution for PHPUnit.

See: php-test-dummy.org and github/tcz/PHPTestDummy

PHPTestDummy is in an “alpha” stage and therefore it can be buggy. Please report any problem you encounter in the Github issues section. Quite some improvements are planned to be implemented soon, but please, if you specificly would like to see something, open an issue as well.

Advertisements
Tagged with: ,