DEV Community

David Carr
David Carr

Posted on • Originally published at dcblog.dev on

2 2

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)

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →