Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

maytham's avatar

PHPunit in PHPstorm

Hi guys,

I have followed one of Jeffrey video's regardings setup PHPunit in PHPstorm.

PHPUNIT works fine from PHPStorm terminal/command line.

But When I run a test from PHPStorm, it pop up with (Edit configuration) and at the buttom of the windows saying (Error: Interpreter is not specified or invalid).

Any of you guys have had this issue before.

Btw I run Windows 8.1 and PHPStorm 8.0 latest one.

PHP unit is installed with codeception.

0 likes
4 replies
fhferreira's avatar

your phpunit need to set "phpunit.bat" because it`s windows OS

arabsight's avatar
Level 10

PHPStorm is looking for the php interpreter, go to Settings -> php -> Interpreter and Select you installed php intepreter.

maytham's avatar

Thx, @arabsight, you are great man, btw I need also to re select the autoload.php under PHPunit and it works now. Sadly there are a lot small issues with Windows vs Mac OS or Linux

Please or to participate in this conversation.