Conversation
TavoNiievez
left a comment
There was a problem hiding this comment.
I don't think the behavior of this new $vars parameter is intuitive. Please mention the documentation PR when you have it.
On the other hand, will there be tests for this new feature?
Unfortunately, documentation is not with the source code now, so I didn't make that PR yet.
I think It can be tested in non-interactive mode. But not sure how. |
|
Updated PR so @TavoNiievez sorry, I won't be able to write tests because of lack of time |
|
@Naktibalda I updated the behavior, please merge if you are ok with this |
| $backtrace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 3); | ||
| foreach ($backtrace as $backtraceStep) { | ||
| $class = $backtraceStep['class'] ?? null; | ||
| $fn = $backtraceStep['class'] ?? null; |
There was a problem hiding this comment.
This line should be using $backtraceStep['function'], right?
More pause options
Codecept\Lib\PauseShellcodecept_pause()function$this->pause()for unit tests$varsas array:TODO: Documentation!