Eliminate use of a global and add one to phpunit config