use PHPUnit\Framework\TestCase;
final class WithADataProvider extends TestCase
{
/**
* @dataProvider provideData()
*/
public function test()
{
}
}
After
use PHPUnit\Framework\TestCase;
final class WithADataProvider extends TestCase
{
#[\PHPUnit\Framework\Attributes\DataProvider('provideData()')]
public function test()
{
}
}
Before
After