Don't autoload classes in AutoloadStructureTest
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 29 May 2018 18:09:57 +0000 (11:09 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 29 May 2018 18:09:57 +0000 (11:09 -0700)
commitb5e6da43e4d71346590a13393bd052d67ac70cee
tree5460fb243522c428296d3b5a82acbaa60865b8d7
parent4408e28100c96961127e7e84581fc43eadfe5fa6
Don't autoload classes in AutoloadStructureTest

Autoloading classes is a 100% accurate way to ensure the autoloader
worked, but there are cases where if optional dependencies aren't
installed, then autoloading the class will fail. We can re-implement the
logic behind the PSR-4 autoloader, and ensure that classes will be
autoloadable by turning the filename into a class name, and making sure
that class name is the one we found in the file.

Bug: T195823
Change-Id: I5df378180e567c257386482383ef73812592f989
tests/phpunit/structure/AutoLoaderStructureTest.php