doudai8083 2017-05-22 16:31
浏览 40

运行/调试时使用WampServer的PhraStorm for PhraStorm上的致命错误

I have tried to run/debug multiple projects on PhpStorm (two of them are imported, one is created on phpstorm) Each of them gives me (different) PHP Fatal errors when I run or debug.


This is the first error.

PHP Fatal error:  Class 'Doctrine\Tests\Common\Cache\CacheTest' not found in C:\wamp64\www\bodisatva\vendor\doctrine\cache\tests\Doctrine\Tests\Common\Cache\ApcCacheTest.php on line 10

Problem is that CacheTest exists.


The second project:

PHP Fatal error:  Class 'Doctrine\Tests\DoctrineTestCase' not found in C:\wamp64\www\larasocial\vendor\doctrine\inflector\tests\Doctrine\Tests\Common\Inflector\InflectorTest.php on line 8

Again, it exists.


Project that I completely set up on PhpStorm for testing.

PHP Fatal error:  Class 'Tests\Behat\Gherkin\Keywords\KeywordsTest' not found in C:\wamp64\www\larazine\vendor\behat\gherkin\tests\Behat\Gherkin\Keywords\ArrayKeywordsTest.php on line 8

Different and same.


Am I missing something? I tried to google these errors only to find specific (but probably outdated as I had even more errors trying them) solutions.

  • 写回答

1条回答 默认 最新

  • dongxue163536 2017-05-22 16:50
    关注

    How did you configure PHPUnit in File | Settings | Languages & Frameworks | PHP | PHPUnit? Is it PHPunit 5 or 6? You might want to attach a screenshot of your config here.

    Are there any inspection errors in C:\wamp64\www\larasocial\vendor\doctrine\inflector\tests\Doctrine\Tests\Common\Inflector\InflectorTest.php on line 8, e.g. DoctrineTestCase or TestCase are highlighted?

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度