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

request_var tests fail when other tests using request_var are executed first

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.0-dev
    • 3.1.0-a1
    • Other
    • None
    • 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

            naderman Nils Adermann [X] (Inactive)
            naderman Nils Adermann [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: