moodle-cs icon indicating copy to clipboard operation
moodle-cs copied to clipboard

TestCaseProviderSniff does not detect data provider method "class::provider"

Open ziegenberg opened this issue 9 months ago • 1 comments

You can share data providers between separate unit tests with:

    /**
     * Test something.
     *
     * @dataProvider \some\class\test_class::test_provider
     */
    public function test_something(){}

This generates the error message: Data provider method "\some\class\test_class::test_provider" not found.

ziegenberg avatar May 20 '24 18:05 ziegenberg