You can always create your own mock classes (you don't need to use the built in Mock object):
class tableMock extends Table {
public function __construct() {
}
public function find($id) {
return $id;
}
}
$tableMock = new tableMock();
//Do your testing here...
If you want to fail the test from inside of the Mock, just throw an exception...
ircmaxell
2010-06-15 16:48:15