This project demonstrates a bug in PHPUnit when using backupStaticAttributes with an autoloader. Individually the tests pass, but when run together they fail.
Clone project to a directory of your choice. Run: php composer.phar update Run the tests in TestClassA.php