phpunit dbunit @dataProvider doesn't work

前端 未结 1 1048
轮回少年
轮回少年 2021-01-16 04:49

I spent a lot of time by searching where is the problem, but i haven\'t find anything.

It sais \"testAdd caused an ERROR: Missing argument\". Simply the dataProvider

1条回答
  •  广开言路
    2021-01-16 05:38

    You should never overwrite TestCase constructor. PhpUnit has a specialized methods for initialization purposes called setUp and setUpBeforeClass, so I strongly suggest you to use that. I´m pretty sure this is the cause of your problem.

    0 讨论(0)
提交回复
热议问题