Need help running phpunit - getting error Call to protected method PHPUnit_TextUI_Command::handleLoader()
Hi,
I am trying to migrate from Netbeans to Phpstorm. Everything is just awesome except I am having trouble running the phpunit test. I am using a xml config for the phpunit test and it runs perfectly in Netbeans and command line. But in PHPStorm I am getting the following error:
/usr/local/zend/bin/php /private/var/folders/ra/ra47q0EHHFa9B-WEDy76hU+++TQ/-Tmp-/phpunit_store_george.php -config /Volumes/dev/store/tests/integration/phpunit_store.xml d /Volumes/dev/store/tests
Can I trouble one of you experts to help me resolve this? I would love to uninstall Netbeans :)
Please sign in to leave a comment.
Hi george,
I see you are specifying your own testSuiteLoaderClass in phpunit xml config file.
Base on the error description, the fact that PhpStorm uses custom script to interact with/control PHPUnit tests execution and source code of such script I think that there is a bug in that custom script (handleLoader() is protected method indeed and therefore should be invoked by child class not directly like it is done ATM -- unless I'm totally wrong here).
I recommend to file a Bug Report on Issue Tracker to have it fixed: http://youtrack.jetbrains.net/issues/WI
Hello george,
The issue is fixed in PhpStorm 2.1.2 - http://youtrack.jetbrains.net/issue/WI-683
Thank you for feedback!