PHPUnit - 'No tests executed' when using configuration file

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

    Mine was a bit funny.

    When I used php artisan make:test I accidentally put .php like ProductRewardPointController.php which created ProductRewardPointController.php.php and phpunit simply ignored it.

    I just delete the extra .php and things back to normal

提交回复
热议问题