Hi, my name is David Carr and I'm a PHP Developer.

Blog Archives Categories Authors About Me Open Source Books Contact Me

Sponsor Me

Help support the blog so that I can continue creating new content!

My Latest Book

Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Tests | Pest PHP | Laravel Framework

David Carr

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

Usually caused by caching, clear your cache by running:

php artisan optimize:clear


Copyright © 2009 - 2022 David Carr. All code MIT license. All rights reserved.