We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f11ace + 3381701 commit f11f3aaCopy full SHA for f11f3aa
src/PendingCalls/TestCall.php
@@ -759,7 +759,12 @@ public function __destruct()
759
$this->testSuite->tests->set($this->testCaseMethod);
760
761
if (! is_null($testCase = $this->testSuite->tests->get($this->filename))) {
762
- $testCase->attributes = array_merge($testCase->attributes, $this->testCaseFactoryAttributes);
+ $attributesToMerge = array_filter(
763
+ $this->testCaseFactoryAttributes,
764
+ fn (Attribute $attributeToMerge): bool => array_filter($testCase->attributes, fn (Attribute $attribute): bool => serialize($attributeToMerge) === serialize($attribute)) === []
765
+ );
766
+
767
+ $testCase->attributes = array_merge($testCase->attributes, $attributesToMerge);
768
}
769
770
0 commit comments