Global Catastrophe
- WordPress makes extensive use of global variables
- PHPUnit kills global variables
-
Here's what ensues:
Call to a member function add_rule() on a non-object in wp-includes/rewrite.php
Call to a member function add_rewrite_tag() on a non-object in wp-includes/taxonomy.php
Undefined variable: wpdb in wp-includes/ms-settings.php
Trying to get property of non-object in wp-includes/functions.php
Undefined index: HTTP_HOST in wp-includes/ms-settings.php