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"