Skip to content

Commit 5dc6a73

Browse files
committed
MQE-782: Fatal error is thrown when a group name conflicts with an existing suite name
- Modified exception message formatting for more readable output
1 parent 838b69d commit 5dc6a73

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Magento/FunctionalTestingFramework/Suite/Util/SuiteObjectExtractor.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ public function parseSuiteDataIntoObjects($parsedSuiteData)
6363
foreach ($testGroupConflicts as $test) {
6464
$testGroupConflictsFileNames .= $test->getFilename() . "\n";
6565
}
66-
throw new XmlException(
67-
"Suite names and Group names can not have the same value. \t\n
68-
Suite: \"{$suiteName}\" also exists as a group annotation in \n{$testGroupConflictsFileNames}"
69-
);
66+
$exceptionmessage = "\"Suite names and Group names can not have the same value. \t\n" .
67+
"Suite: \"{$suiteName}\" also exists as a group annotation in: \n{$testGroupConflictsFileNames}";
68+
throw new XmlException($exceptionmessage);
7069
}
7170

7271
//extract include and exclude references

0 commit comments

Comments
 (0)