How to run single test method with phpunit?

前端 未结 13 2160
猫巷女王i
猫巷女王i 2020-11-30 16:13

I am struggling to run a single test method named testSaveAndDrop in the file escalation/EscalationGroupTest.php with phpunit. I tried

13条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 17:12

    Following command will execute exactly testSaveAndDrop test.

    phpunit --filter '/::testSaveAndDrop$/' escalation/EscalationGroupTest.php
    

提交回复
热议问题