doujing8435 2014-03-23 17:01
浏览 191
已采纳

Laravel phpunit没有运行任何测试

I cannot get any test to run, there are also no errors.

I downloaded phpunit and moved it to /usr/local/bin.

I did not do any config change on my fresh laravel installation.

cd to my laravel root directory. phpunit --version gives PHPUnit 4.0.12

There is an laravel example test located at /Applications/MAMP/htdocs/survey-backend/app/tests/ExampleTest.php.

Now, running tests with: phpunit outputs only:

Configuration read from /Applications/MAMP/htdocs/survey-backend/phpunit.xml

Why is the test not being executed?

  • 写回答

2条回答 默认 最新

  • dongtun3328 2014-03-24 20:33
    关注

    This failed all the time due to a fatal error because I included classes in the start.php that were available when using via /public but were missing when calling from phpunit. I have now added them to composer.json and everything is working.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 Macbookpro 连接热点正常上网,连接不了Wi-Fi。
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 linux驱动,linux应用,多线程