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 4f05cab commit f1d0b04Copy full SHA for f1d0b04
src/Metadata/Api/DataProvider.php
@@ -59,8 +59,9 @@
59
*/
60
public function providedData(string $className, string $methodName): ?array
61
{
62
- $dataProvider = MetadataRegistry::parser()->forMethod($className, $methodName)->isDataProvider();
63
- $testWith = MetadataRegistry::parser()->forMethod($className, $methodName)->isTestWith();
+ $metadataCollection = MetadataRegistry::parser()->forMethod($className, $methodName);
+ $dataProvider = $metadataCollection->isDataProvider();
64
+ $testWith = $metadataCollection->isTestWith();
65
66
if ($dataProvider->isEmpty() && $testWith->isEmpty()) {
67
return $this->dataProvidedByTestWithAnnotation($className, $methodName);
0 commit comments