DDC-112: Extend ORMFunctionalTestCase to Log all Queries and Enrich Test Failures with them #1717

doctrinebot opened this Issue Nov 4, 2009 · 2 comments

2 participants


Jira issue originally created by user @beberlei:

The functional tests are often on such a large scale, that for debugging purposes on a test failure it would be really helpful to see all the Queries executed against the database.

The TestCase class should be extended to add an sql logger to the connection and use the PHPUnit 3.4 facilities to hook into a failing test and change the exception message.

The old stack trace, exception class and message should be kept for debugging purposes also.

On PHPUnit 3.3.x nothing happens.


Comment created by @beberlei:



Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0-ALPHA3 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment