mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-112: Extend ORMFunctionalTestCase to Log all Queries and Enrich Test Failures with them #141
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 4, 2009).
Originally assigned to: @beberlei on GitHub.
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.