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

David Carr

1 min read - 4th Jun, 2022

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

Received Mockery_1_Illuminate_Console_OutputStyle::askQuestion(), but no expectations were specified

Usually caused by caching, clear your cache by running:

php artisan optimize:clear
0 comments
Add a comment

Copyright © 2024 DC Blog - All rights reserved.