Error running PHPUnit in PhpStorm

I have some PHP unit tests with in Zend Framework application I am trying to execute. If I run from the command line everything runs fine. If I run from within PhpStorm then I get the error:

PHP Fatal error:  require_once(): Failed opening required 'PHPUnit/Runner/IncludePathTestCollector.php' (include_path='C:\Users\Aaron\My Servers\php-5.2.17\PEAR') in C:\Users\Aaron\AppData\Local\Temp\phpunit_CapitalProjects_Aaron.php on line 335

I looked and that class doesn't exist in PHPUnit. Can someone tell me why it's looking for this class and/or how to resolve?

Thanks,
Aaron

5 comments

Hello Aaron,

What PHPUnit version do you use? PhpStorm 2.1.5 doesn't support PHPUnit 3.6 (http://youtrack.jetbrains.net/issue/WI-7554), but the issue was resolved in the latest EAP build - http://blog.jetbrains.com/webide/2011/11/phpstorm-webstorm-3-0-eap-110-293/

Thank you for feedback!

0

Thanks! I spent a while in PEAR dependency hell and got everthing downgraded. Working fine now.

0

Aaron,

PHPUnit 3.6 is supported in the PHPStorm 3.0.

Thank you for feedback!
0

Thanks I've been using and working well (mostly). Too bad Zend Framwork doesn't support 3.6 :(

0

Please sign in to leave a comment.