sebastianbergmann / dbunit

DbUnit port for PHP/PHPUnit.
https://phpunit.de/
Other
225 stars 186 forks source link

TestCaseTrait could not be loaded #174

Closed etienneq closed 8 years ago

etienneq commented 8 years ago

In some applications we do not use Composer's autoloader but our own of which until now I thought of being PSR-compatible.

In that cases loading of TestCaseTrait fails because Testcase specifies use PHPUnit_Extensions_Database_TestCase_Trait; but the filename is Extensions/Database/TestCaseTrait.php and not Extensions/Database/TestCase/Trait.php as expected. What's the reason for this? Am I missing something?

Kind regards, Etienne

sebastianbergmann commented 8 years ago

Your autoloader is probably too eager and tries to load classes it is not responsible for.