Allow the PHPUnit PHAR to be loaded as a library
Closes #1242
Merge branch '4.1'