Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10552

Add an option to show complete stack traces in tests

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major Major
    • 3.0.15-RC1
    • 3.0.10-RC3
    • None

      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.

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

              Created:
              Updated:
              Resolved: