function DataProvider::valueObjectForTestMethodWithoutTestData
@psalm-param class-string $className @psalm-param non-empty-string $methodName
Throws
MoreThanOneDataSetFromDataProviderException
1 call to DataProvider::valueObjectForTestMethodWithoutTestData()
- DataProvider::dataProvidedByMethods in vendor/
phpunit/ phpunit/ src/ Metadata/ Api/ DataProvider.php - @psalm-param class-string $className @psalm-param non-empty-string $methodName
File
-
vendor/
phpunit/ phpunit/ src/ Metadata/ Api/ DataProvider.php, line 293
Class
- DataProvider
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Metadata\ApiCode
private function valueObjectForTestMethodWithoutTestData(string $className, string $methodName) : TestMethod {
$location = Reflection::sourceLocationFor($className, $methodName);
return new TestMethod($className, $methodName, $location['file'], $location['line'], Event\Code\TestDoxBuilder::fromClassNameAndMethodName($className, $methodName), MetadataRegistry::parser()->forClassAndMethod($className, $methodName), TestDataCollection::fromArray([]));
}