How to run single test method with phpunit?

前端 未结 13 2200
猫巷女王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:11

    So, something like this

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

    Without = and with '

    https://phpunit.de/manual/3.7/en/textui.html

提交回复
热议问题