function TestSuite::methodDoesNotExistOrIsDeclaredInTestCase
2 calls to TestSuite::methodDoesNotExistOrIsDeclaredInTestCase()
- TestSuite::invokeMethodsAfterLastTest in vendor/
phpunit/ phpunit/ src/ Framework/ TestSuite.php - TestSuite::invokeMethodsBeforeFirstTest in vendor/
phpunit/ phpunit/ src/ Framework/ TestSuite.php
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ TestSuite.php, line 566
Class
- TestSuite
- @template-implements IteratorAggregate<int, Test>
Namespace
PHPUnit\FrameworkCode
private function methodDoesNotExistOrIsDeclaredInTestCase(string $methodName) : bool {
$reflector = new ReflectionClass($this->name);
return !$reflector->hasMethod($methodName) || $reflector->getMethod($methodName)
->getDeclaringClass()
->getName() === TestCase::class;
}