PHPUnit @dataProvider simply doesn't work

前端 未结 8 1748
后悔当初
后悔当初 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:24

    If you really need it, David Harkness had the right tip. Here's the code:

    public function __construct($name = NULL, array $data = array(), $dataName = '') {
        $this->preSetUp();
        parent::__construct($name, $data, $dataName);
    }
    

提交回复
热议问题