Jira issue originally created by user arron:
When trying to test repository, after creating all mocks wit the help of OrmTestCase, I run into error "Call to a member function bindValue() on a non-object". It is caused by empty method prepare() in DriverConnectionMock. This method returns nothing and introducing NULL value on which bindValue() method is called later. Possible solution is to return new instance of StatementMock() class from prepare() method.
Comment created by @beberlei:
The OrmTestCase and the mocks in the Doctrine Test code is not for reuse.
Issue was closed with resolution "Invalid"
Comment created by arron:
Is there any recommendation how to create unit tests for entity repository then?