I recently updated phalcon on a project that I hadn't looked at for a while (running on 3.0) and now the unit tests which ran before are failing with a "Exception: Invalid superglobal" error.
I'm extending the incubator's UnitTestCase and adding some more services to the DI. The DI is visible and accessible in the unit tests but doesn't exist in the code the tests are calling.
So for example, I would be testing a class which extends Component which would use $this->session to get the session service. During the test however that variable does not exist resulting in the invalid superglobal error.
I'm using a test helper file as described in the docs to load up a config, register namespaces and include the incubator. All the classes are included and executed fine; the only issue is the lack of those services in the app code extending Component...