Fixes errors in tests with APC installed but not enabled in CLI.
Merge pull request #1437 from Phally/master-apc-errors

Fixes errors in tests with APC installed but not enabled in CLI.