views:

146

answers:

1
+1  A: 

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