Replies: 1 comment
-
I reported it as a bug since I expected that But we can of course see it differently and say that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
If in your console command you are writing multiple lines to the output then the only chance to write a proper test for it is to use the
Mockery::pattern()
method to create and match patterns:Working code
It works as expected but
Illuminate\Testing\PendingCommand::doesntExpectOutput()
uses the not expected value as the key of an associative array which makes it impossible to useMockery::pattern()
.Steps To Reproduce:
Example code:
This will throw an error like:
Beta Was this translation helpful? Give feedback.
All reactions