phpunit command doesn't work for laravel 4 on windows 7

前端 未结 11 1832
南笙
南笙 2020-12-15 06:06

I\'ve recently installed laravel and have written some tests in /tests directory but when I use phpunit at cmd in the same folder that phpunit.xml

11条回答
  •  生来不讨喜
    2020-12-15 06:25

    If it says the following:

    $ phpunit tests/Feature/ExampleTest.php PHPUnit 3.7.21 by Sebastian Bergmann.

    Class 'tests/Feature/ExampleTest' could not be found in 'C:\xampp\htdocs\blog1\tests\Feature\ExampleTest.php'.

    Instead of typing tests/Feature/ExampleTest.php you say tests " \\Feature\\Example.test" because you're using windows, not mac. :) GL & HF

    Using just \ or / will give errors :)

提交回复
热议问题