How do I run all my PHPUnit tests?

后端 未结 5 1213
深忆病人
深忆病人 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 03:00

    You think they would have documented this. I just looked through the manual, and they say you can pass a directory, but not really how to do it.

    Perhaps your class name has to match the basename (everything but the ".php") of your test scripts filename?

提交回复
热议问题