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

Closed
opened 2026-01-22 12:28:28 +01:00 by admin · 2 comments
Owner

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.

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.
admin added the Bug label 2026-01-22 12:28:28 +01:00
admin closed this issue 2026-01-22 12:28:28 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 4, 2009):

Comment created by @beberlei:

Implemented

@doctrinebot commented on GitHub (Nov 4, 2009): Comment created by @beberlei: Implemented
Author
Owner

@doctrinebot commented on GitHub (Nov 4, 2009):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 4, 2009): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#143