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

request_var tests fail when other tests using request_var are executed first

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev
    • Fix Version/s: 3.1.0-a1
    • Component/s: Other
    • Labels:
      None
    • Environment:
      PHP 5.2

      Description

      All tests in tests/request/request_var.php fail because request_var() calls use the mock request instance created in previous tests. Instead the default request_var behaviour of creating its on instance on use should apply.

      What's required for this to work is some way to reset the static instance inside the deprecated request_var function to null for further tests. PHPUnit's global/static scope backup and restore mechanism cannot access static function values.

        Attachments

          Activity

            People

            • Assignee:
              naderman Nils Adermann
              Reporter:
              naderman Nils Adermann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: