We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DataProvider->providedData()
1 parent 1848e87 commit e14d85bCopy full SHA for e14d85b
src/Metadata/Api/DataProvider.php
@@ -47,8 +47,9 @@
47
*/
48
public function providedData(string $className, string $methodName): ?array
49
{
50
- $dataProvider = MetadataRegistry::parser()->forMethod($className, $methodName)->isDataProvider();
51
- $testWith = MetadataRegistry::parser()->forMethod($className, $methodName)->isTestWith();
+ $metadataCollection = MetadataRegistry::parser()->forMethod($className, $methodName);
+ $dataProvider = $metadataCollection->isDataProvider();
52
+ $testWith = $metadataCollection->isTestWith();
53
54
if ($dataProvider->isEmpty() && $testWith->isEmpty()) {
55
return null;
0 commit comments