PHPUnit @dataProvider simply doesn't work

前端 未结 8 1918
后悔当初
后悔当初 2021-02-01 16:04

I\'ve read the documentation on the topic, and my code follows all requirements of a data provider implementation. First of all, here\'s the full code of the test just in case i

8条回答
  •  忘了有多久
    2021-02-01 16:46

    For me only removing the constructor has worked. Calling the parent constructor inside my class test broke the annotations as well even with the latest stable version of PHPUnit (6.0.9).

    I just moved the code I had on __constructor to the setUp function that is called before my unit tests run.

提交回复
热议问题