Skip to content

Commit 722f312

Browse files
committed
MQE-1884: MFTF - <after> failures override other failures
fixed static checks
1 parent 467c157 commit 722f312

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Magento/FunctionalTestingFramework/Extension/TestContextExtension.php

+4-5
Original file line numberDiff line numberDiff line change
@@ -161,16 +161,15 @@ public function extractContext($trace, $class)
161161
*/
162162
public function logPreviousException(\Exception $exception)
163163
{
164-
$change = function(){
165-
if ($this instanceof \PHPUnit\Framework\ExceptionWrapper ) {
164+
$change = function () {
165+
if ($this instanceof \PHPUnit\Framework\ExceptionWrapper) {
166166
return $this->previous;
167-
}
168-
else {
167+
} else {
169168
return $this->getPrevious();
170169
}
171170
};
172171
$firstException = $change->call($exception);
173-
$bind = function() use ($firstException){
172+
$bind = function () use ($firstException) {
174173
$exception = $firstException;
175174
};
176175
$bind->call($exception);

0 commit comments

Comments
 (0)