Skip to content

Commit 6db9c8d

Browse files
committed
MQE-1884: MFTF - <after> failures override other failures
removed redundant var; code cleanup.
1 parent 78d396f commit 6db9c8d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Magento/FunctionalTestingFramework/Extension/TestContextExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ public function extractContext($trace, $class)
119119
*/
120120
public function attachExceptionToAllure($exception, $testMethod)
121121
{
122-
$exceptionType = null;
123-
$trace = null;
124-
125122
if (is_subclass_of($exception, \PHPUnit\Framework\Exception::class)) {
126123
$trace = $exception->getSerializableTrace();
127124
} else {
@@ -140,6 +137,7 @@ public function attachExceptionToAllure($exception, $testMethod)
140137
return $this->getPrevious();
141138
}
142139
};
140+
143141
$previousException = $change->call($exception);
144142

145143
if ($previousException !== null) {

0 commit comments

Comments
 (0)