How to run single test method with phpunit?

前端 未结 13 2180
猫巷女王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 16:51

    If you're using an XML configuration file, you can add the following inside the phpunit tag:

    
      
        nameToInclude
      
      
        nameToExclude
      
    
    

    See https://phpunit.de/manual/current/en/appendixes.configuration.html

提交回复
热议问题