PHPUnit - 'No tests executed' when using configuration file

后端 未结 22 735
故里飘歌
故里飘歌 2021-01-31 00:47

The Problem

To improve my quality of code, I\'ve decided to try to learn how to test my code using Unit Testing instead of my mediocre-at-best testing solutions.

22条回答
  •  遇见更好的自我
    2021-01-31 01:45

    On windows use the following command on terminal

    .\vendor\bin\phpunit
    

    that's if the command

    phpunit
    

    returns "No tests executed!"

    while on Mac

    ./vendor/bin/phpunit
    

    Hope it helps.

提交回复
热议问题