Bug Report #4657

CoreTest.php messes up $GLOBALS causing phpunit notices

Added by alex krk about 2 years ago. Updated over 1 year ago.

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

100%

Category:Core
Target version:3.3.1
Resolution:fixed Points:1

Description

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 over 1 year ago

Fixes #4657: Reset the globals after running the tests

Revision 73c2a22e
Added by Lorenzo Pisani over 1 year ago

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

Fixes #4657: Reset the globals after running the tests

History

#1 Updated by Valeriy Volkov about 2 years ago

I`m having same issue - please fix

#3 Updated by Lorenzo Pisani over 1 year ago

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

Cheers!

Also available in: Atom PDF