How to skip tests in PHPunit?

后端 未结 3 575
天命终不由人
天命终不由人 2021-01-31 13:00

I am using phpunit in connection with jenkins, and I want to skip certain tests by setting the configuration in the XML file phpunit.xml

I know that I can

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 13:54

    The fastest and easiest way to skip tests that are either broken or you need to continue working on later is to just add the following to the top of your individual unit test:

    $this->markTestSkipped('must be revisited.');
    

提交回复
热议问题