You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error : Mockery\Exception\InvalidOrderException: Method [...] Output_BufferedOutput::doWrite('After table', <Any>)() called out of order: expected order 2, was 7
First test :
In the expectsTable assertion function, replace usage of $this->test->expectedTables[] = ... with the logic of the applyTableOutputExpectations function seems to fix the issue. Not tested with the laravel framework unit tests.
In other words, the expectsTable function could be :
I can indeed see this being problematic as even moving around the statements doesn't help. Performing two separate checks does work for me but is a bit cumbersome.
After looking into it further it indeed does seem to me that your solution makes sense. I think it could be considered but it does seems like a change in behavior to me so might need to go to the master branch.
Description:
On command testing, usage of
expectsTable
assertion do not work when used betweenexpectsOutput
.Steps To Reproduce:
The command :
The test :
The error :
Mockery\Exception\InvalidOrderException: Method [...] Output_BufferedOutput::doWrite('After table', <Any>)() called out of order: expected order 2, was 7
First test :
In the
expectsTable
assertion function, replace usage of$this->test->expectedTables[] = ...
with the logic of theapplyTableOutputExpectations
function seems to fix the issue. Not tested with the laravel framework unit tests.In other words, the
expectsTable
function could be :The text was updated successfully, but these errors were encountered: