PHPUnit - 'No tests executed' when using configuration file

后端 未结 22 1118
故里飘歌
故里飘歌 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:31

    I pulled my hair for 10 minutes before i decided to use --debug (good way to go by the way) to discover the simple fact that file name didn't respect the naming convention, i had an extra "s" at the end.

    wrong

    CreateAdminTests
    

    right

    CreateAdminTest
    

    hope this note could help for someone

提交回复
热议问题