Reputation: 281
I created a phpunit test file , when I try to run it via phpstorm, I get the message:
Unable to attach test reporter to test framework or test framework quit unexpectedly
seems the following command is executed:
/usr/local/bin/php /private/var/folders/4b/qrnw7nbd6llgmhrss5rf1_880000gt/T/ide-phpunit.php --configuration /Users/Shared/sites/pac/app/app/phpunit.xml.dist BackendControllerTest /Users/Shared/sites/pac/app/modules/Pac/Backend/Tests/Controller/BackendControllerTest.php
Testing started at 23:22 ...
Process finished with exit code 0
when i execute this via command line , i get much more output
PHPUnit 3.6.11 by Sebastian Bergmann.
...etc...
FAILURES!
Tests: 2, Assertions: 2, Failures: 1.
seems phpunit isn't executed in phpstorm? shouldn't there be some sort of error message instead of finishing with exit code 0? Paths to php & phpunit (same) in phpstorms configuration should be ok (both installed via homebrew in /usr/local/bin, path added to phpstorm)
osx 10.7.4 php 5.3.14 PHPUnit 3.6.11
Thanks for helping me!
Matthias
Upvotes: 4
Views: 10404
Reputation: 56
On MacOSX, I was struggling with a simialair problem for quite a while.
The reason in my case turned out to be a PHP-upgrade script, that had messed with some permissions.
What I did:
To find these directories you can issue
# pear config-show
(Look for the bin_dir and php_dir)
This meant I would do the commands:
# (sudo) chmod -R 755 <bin_dir>
# (sudo) chmod -R 755 <php_dir>
More coding - Less IDE-config!
Upvotes: 0
Reputation: 957
Do you edit include_path in your php.ini?
I have the simillar situation to you.After I added pear's include path,it works.
Upvotes: 0
Reputation: 401975
On Mac OS X environment variables available in Terminal and for the normal applications can be different, check the related question for the solution how to make them similar.
Note that this solution will not work on Mountain Lion (10.8).
Upvotes: 3