-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Data providers can be specified like this:
/**
* @dataProvider \Ergebnis\License\Test\Util\DataProvider\Text::blankOrEmptyString()
*
* @param string $name
*/
public function testFromFileRejectsBlankOrEmptyFileName(string $name): void
{
$this->expectException(Exception\InvalidFile::class);
Template::fromFile($name);
}However, psalm/phpunit-psalm-plugin complains with
ERROR: UndefinedMethod - test/Unit/HolderTest.php:33:21 - Provider method Ergebnis\License\Test\Unit\HolderTest::\Ergebnis\License\Test\Util\DataProvider\Text::blankOrEmptyString() is not defined
public function testFromStringRejectsBlankOrEmptyValue(string $value): void
ERROR: UndefinedMethod - test/Unit/TemplateTest.php:67:21 - Provider method Ergebnis\License\Test\Unit\TemplateTest::\Ergebnis\License\Test\Util\DataProvider\Text::blankOrEmptyString() is not defined
public function testFromStringRejectsBlankOrEmptyFileName(string $name): void
Is there a chance this can be supported as well?
For a concrete example, see ergebnis/license#23.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request