9

I'm trying to setup PHPUnit tests in PhpStorm.

In Settings > Languagees & Frameworks > PHP > PHPUnit I have chosen the option to use Composer autoload to load PHPUnit.

In Path to script I have put <path to project>/vendor/bin/phpunit.

When I run the test suite I get the error message:

Test framework quit unexpectedly

1 Answer 1

16

Path to script should be the path to the composer autoloader.

<path to project>/vendor/autoload.php

https://intellij-support.jetbrains.com/hc/en-us/community/posts/207008615-Test-framework-quit-unexpectedly

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.