Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10552

Add an option to show complete stack traces in tests

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.10-RC3
    • Fix Version/s: 3.0.15-RC1
    • Component/s: None
    • Labels:

      Description

      phpunit hides itself from stacktraces it prints. This becomes a nuisance when one has to hunt down setup/teardown calls inside of phpunit (http://tracker.phpbb.com/browse/PHPBB3-10551).

      By defining a constant it is possible to stop phpunit from messing with the backtraces. No idea which versions this constant works for and/or if it is part of the published api.

      In test_config.php:

      if (!defined('PHPUNIT_TESTSUITE')) {
        define('PHPUNIT_TESTSUITE', true);
      }
      

      and apparently test_config.php is included multiple times in a single run, hence the if check.

        Attachments

          Activity

            People

            Assignee:
            CHItA CHItA
            Reporter:
            Oleg Oleg [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: