Skip to content

Commit 992911f

Browse files
Remove superfluous code
1 parent 8e835ec commit 992911f

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/Framework/TestSuite.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -98,28 +98,7 @@ public static function fromClassReflector(ReflectionClass $class, array $groups
9898
{
9999
$testSuite = new static($class->getName());
100100

101-
$constructor = $class->getConstructor();
102-
103-
if ($constructor !== null && !$constructor->isPublic()) {
104-
Event\Facade::emitter()->testRunnerTriggeredWarning(
105-
sprintf(
106-
'Class "%s" has no public constructor.',
107-
$class->getName(),
108-
),
109-
);
110-
111-
return $testSuite;
112-
}
113-
114101
foreach (Reflection::publicMethodsDeclaredDirectlyInTestClass($class) as $method) {
115-
if ($method->getDeclaringClass()->getName() === Assert::class) {
116-
continue;
117-
}
118-
119-
if ($method->getDeclaringClass()->getName() === TestCase::class) {
120-
continue;
121-
}
122-
123102
if (!TestUtil::isTestMethod($method)) {
124103
continue;
125104
}

0 commit comments

Comments
 (0)