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

untymage's avatar

Do i need to use Mockery::close(); ?

I see a lot of laravel packages uses Mockery::close(); in their test, But my code works without it, Why it necessary ?

protected function tearDown(): void
{
    Mockery::close();
}
0 likes
1 reply

Please or to participate in this conversation.