How do I run all my PHPUnit tests?

后端 未结 5 1162
深忆病人
深忆病人 2021-01-31 02:25

I have script called Script.php and tests for it in Tests/Script.php, but when I run phpunit Tests it does not execute any tests in my test file. How do I run all my tests with

5条回答
  •  遇见更好的自我
    2021-01-31 02:55

    Php test's filename must end with Test.php

    phpunit mydir will run all scripts named xxxxTest.php in directory mydir

    (looks likes it's not described in the phpunit documentation)

提交回复
热议问题