-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to instantiate ReflectionClass object w/ path that doesn't exist #802
Comments
He, thanks for the bug report. Whats the error message you are getting and what are you trying to do when the error happens? |
NP. Testing Magento modules using the EcomDev_PHPUnit module. Tried commenting phpunit --filter processOrderShouldFailGracefully Configuration read from /var/www/server/bmodules/B/phpunit.xml.dist EPHP Fatal error: Uncaught exception 'Exception' with message 'Warning: Thanks, On Wed, Jan 30, 2013 at 3:51 PM, Volker Dusch [email protected]:
|
This is not a problem with PHPUnit but with the autoloader declared in |
I'm a little confused how this is an issue w/ the autoloader in Specifically I'm confused on why every other file that is called in the I can clearly see when and when I comment out the the TestCase line, the call to |
It is an issue with the autoloader declared in `Varien/Autoload.php' because that autoloader is trying to include a file that it is not responsible for. The |
@sebastianbergmann You are right. It's a problem with the Magento Autoloader and it's possible to unregister the autoloader during the tests. I did this in my project n98-magerun.
I did this with Composer autoloader.
@veilig2000 |
PHPUnit_Util_GlobalState::phpunitFiles()
is trying to callself::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Extensions_Story_TestCase', 2);
and
PHPUnit_Extensions_Story_TestCase
does not exist.phpunit --version
3.7.13
The text was updated successfully, but these errors were encountered: