Skip to content

Commit cab8ad5

Browse files
Merge branch '10.5' into 11.3
2 parents dd401e4 + 0118e54 commit cab8ad5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Framework/TestBuilder.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function build(ReflectionClass $theClass, string $methodName, array $grou
4343

4444
$data = null;
4545

46-
if ((new Requirements)->requirementsNotSatisfiedFor($className, $methodName) === []) {
46+
if ($this->requirementsSatisfied($className, $methodName)) {
4747
$data = (new DataProvider)->providedData($className, $methodName);
4848
}
4949

@@ -275,4 +275,13 @@ private function shouldAllTestMethodsOfTestClassBeRunInSingleSeparateProcess(str
275275
{
276276
return MetadataRegistry::parser()->forClass($className)->isRunClassInSeparateProcess()->isNotEmpty();
277277
}
278+
279+
/**
280+
* @param class-string $className
281+
* @param non-empty-string $methodName
282+
*/
283+
private function requirementsSatisfied(string $className, string $methodName): bool
284+
{
285+
return (new Requirements)->requirementsNotSatisfiedFor($className, $methodName) === [];
286+
}
278287
}

0 commit comments

Comments
 (0)