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.
In object-oriented programming, mock objects are simulated objects that mimic the behavior of real objects in controlled ways. A computer programmer typically creates a mock object to test the behavior of some other object, in much the same way that a car designer uses a crash test dummy to simulate the dynamic behavior of a human in vehicle impacts. (Source: Wikipedia)
Even though PHPUnit is a great testing framework for PHP and its included mock object implementation is awesome as well, there might be some aspects that you don't like about it.
$this->at() counts invocations of the object, not the methodPHPTestDummy - while still in a very early development stage - intends to offer a good alternative to the mock objects of PHPUnit. Obviously it still lacks some features that the much more mature PHPUnit has already implemented, but already has something to offer.
It can work together with PHPUnit or any PHP testing framework (by the way do you know any other?).
Start with the tutorial.
PHPTestDummy is free, released under the new (3 clause) BSD license.
You can download PHPTestDummy from Github.
You can also clone the project with Git by running:
$ git clone git://github.com/tcz/PHPTestDummy