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

request_var tests fail when other tests using request_var are executed first

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-a1
    • 3.1.0-dev
    • Other
    • None
    • PHP 5.2

      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.

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

              Created:
              Updated:
              Resolved: