sebastianbergmann / dbunit

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

TestCaseTrait could not be loaded #174

Closed etienneq closed 9 years ago

etienneq commented 9 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 9 years ago

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