Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-112

Extend ORMFunctionalTestCase to Log all Queries and Enrich Test Failures with them

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA2
    • Fix Version/s: 2.0-ALPHA3
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Implemented

        Show
        Benjamin Eberlei added a comment - Implemented

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: