DEV Community

David Carr
David Carr

Posted on • Originally published at dcblog.dev on

Mockery 1 Illuminate Console OutputStyle askQuestion() but no expectations were specified

When running a PESTPHP test if you come across this error:


Received Mockery_1_Illuminate_Console_OutputStyle::askQuestion(), but no expectations were specified
Enter fullscreen mode Exit fullscreen mode

Usually caused by caching, clear your cache by running:


php artisan optimize:clear
Enter fullscreen mode Exit fullscreen mode

Top comments (0)