phpunit not working on a fresh installation of laravel 5.7

后端 未结 3 1319
囚心锁ツ
囚心锁ツ 2021-01-14 18:38

I\'m having a problem with my freshly installed Laravel.

when I\'m trying to use phpunit command to run default ExampleTest.php , I got thi

3条回答
  •  既然无缘
    2021-01-14 18:41

    The problem here is that you are running PHPUnit installed on your system that is pretty old and not PHPUnit that should be run for this project.

    To make sure you run the PHPUnit that is really installed for this project you should rather run:

    vendor/bin/phpunit
    

    or

    vendor/bin/phpunit.bat
    

提交回复
热议问题