I want to use PHPUnit to test my PHP class.
Is it possible to put data providers for my test methods in a separate file created only for storing dataproviders? If so how to do that?
Another question is whether it's a good practice or perhaps it's better to keep test and data provider methods in the same test class.
@dataProvider \App\Tests\MyProvider::method()
as explained in this other response. – Sowell