phpunit not working on a fresh installation of laravel 5.7

后端 未结 3 1297
囚心锁ツ
囚心锁ツ 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:56

    In case somebody is searching for the answer here it is:

    php vendor/phpunit/phpunit/phpunit

    and make sure that your function contains the word "test"

    for example

    public function test_a_user_can_browse_threads()
    {
    ...
    }
    
    

    edit: this works for laravel version 7

提交回复
热议问题