PHPUnit - 'No tests executed' when using configuration file

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

    The function names in the test file must either be prefixed with test or there should be a comment added before function

    /** @test */
    

    Make sure that it is not

    /* @test */
    

    because that doesn't work. there needs to be two asterisks after slash not one.

提交回复
热议问题