Fixes the test cases using Config::getCurrentPhpDir().