Skip to content

Commit 7877003

Browse files
staabmsebastianbergmann
authored andcommitted
fix build
1 parent a40a51b commit 7877003

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Framework/TestBuilder.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ public function build(ReflectionClass $theClass, string $methodName, array $grou
5656
);
5757
}
5858

59+
/** @psalm-suppress UnsafeInstantiation */
5960
$test = new $className($methodName);
6061

61-
assert($test instanceof TestCase);
62-
6362
$this->configureTestCase(
6463
$test,
6564
$this->shouldTestMethodBeRunInSeparateProcess($className, $methodName),
@@ -89,10 +88,9 @@ private function buildDataProviderTestSuite(string $methodName, string $classNam
8988
);
9089

9190
foreach ($data as $_dataName => $_data) {
91+
/** @psalm-suppress UnsafeInstantiation */
9292
$_test = new $className($methodName);
9393

94-
assert($_test instanceof TestCase);
95-
9694
$_test->setData($_dataName, $_data);
9795

9896
$this->configureTestCase(

0 commit comments

Comments
 (0)