PHPUnit10 から static でない DataProvider が非推奨になってた
最近知った.
A data provider method must be public and static. It must either return an array of arrays or an object that implements the Iterator interface. In each iteration step, it must yield an array. For each of these arrays, the test method will be called with the contents of the array as its arguments.
だそうで.
DataProvder の解説記事ってだいたい non-static に書いてあった気がするのでご注意.
Data Provider method TestClass::FooDataProvider() is not static
みたいなエラーが出たらこれです.
ちなみにこの変更があった commit はコチラ