Bug Report #4657

CoreTest.php messes up $GLOBALS causing phpunit notices

Added by alex krk over 1 year ago. Updated 11 months ago.

Status:ClosedStart date:11/14/2012
Priority:NormalDue date:
Assignee:Lorenzo Pisani% Done:


Target version:3.3.1
Resolution:fixed Points:1


After the CoreTest:test_globals_removes_user_def_globals has run I get a bunch of notices:

Notice: Undefined index: _SERVER in vendor/phpunit/phpunit/PHPUnit/Util/Filter.php on line 69

Maybe there's a way to reinstate the $GLOBALS array after running this test?

Associated revisions

Revision 30c906a6
Added by Robert-Jan de Dreu 11 months ago

Fixes #4657: Reset the globals after running the tests

Revision 73c2a22e
Added by Lorenzo Pisani 11 months ago

Merge pull request #361 from rjd22/3.3/bugfix/globals_reset_in_test

Fixes #4657: Reset the globals after running the tests


#1 Updated by Valeriy Volkov over 1 year ago

I`m having same issue - please fix

#3 Updated by Lorenzo Pisani 11 months ago

  • Status changed from New to Closed
  • Assignee set to Lorenzo Pisani
  • % Done changed from 0 to 100
  • Resolution set to fixed


Also available in: Atom PDF