How to run single test method with phpunit?

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

    You must use --filter to run a single test method php phpunit --filter "/::testMethod( .*)?$/" ClassTest ClassTest.php

    The above filter will run testMethod alone.

提交回复
热议问题