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

Daniel-Pablo's avatar

can't test single test -> help needed URGENT!, error: test framework quit unexpectedly php storm

Hello! Thanks for your help,

Can't test and single test -> help needed URGENT!, error: test framework quit unexpectedly php storm on RUN TAB -- that is the error that shows me the Run tab console -- the program don't quit just the test prompt...

I am trying to understand WHY this is not working! I installed laravel 10 Jetstream with Livewire and PEST 2, and all is working so, I am inside php storm testing inside the RUN tab of PHPStorm (not console) and then inside this file:

myTest.php

use Illuminate\Foundation\Testing\RefreshDatabase;
use function Pest\Laravel\get;

uses( RefreshDatabase::class );

// so if I place the cursor (caret) HERE and run the test IT PASS! ( on my PHPStorm Run tab) but run all the file and I don't want that, I want just a single function test so...

it('have a welcome page', function () {

// if I place the cursor (caret) HERE and run the test IT FAIL! and I get an error that says the following test framework quit unexpectedly, WHY...? because I am inside this test function and don't understand WHY this is not making the test with this single test, can you help? in a laravel 9 with pest 1, it works good

    get(route('welcome'))->assertOk();

} );

// ... more tests go here ...

thanks for your help

0 likes
2 replies
Daniel-Pablo's avatar
Daniel-Pablo
OP
Best Answer
Level 12

SOLVED I just updated the PHP STORM from 2022 to 2023 and that makes the magic

hope someone doesn't fall into that trap, but if yes then this is how to solve it!

SanderB's avatar

Do you have any idea what caused the error? I have the same, but I'm already on PhpStorm 2023.3.3 and also using laravel 10.40.0

Please or to participate in this conversation.