簡體   English   中英

運行/調試時,使用WampServer的Laravel Project在PhpStorm上的PHP致命錯誤

[英]PHP Fatal errors on PhpStorm for Laravel Project using WampServer when run/debug

我嘗試在PhpStorm上運行/調試多個項目(其中兩個已導入,一個在phpstorm上創建),每個項目在運行或調試時都會給我(不同的)PHP致命錯誤。


這是第一個錯誤。

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

問題是CacheTest存在。


第二個項目:

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

同樣,它存在。


我完全在PhpStorm上設置的項目用於測試。

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

不同和相同。


我想念什么嗎? 我試圖用谷歌搜索這些錯誤,只是為了找到特定的解決方案(但可能已經過時,因為我嘗試它們時甚至遇到了更多錯誤)。

如何在文件中配置PHPUnit? 設置| 語言和框架| PHP | PHPUnit的 是PHPunit 5還是6? 您可能想要在此處附加配置的屏幕截圖。

第8行的C:\\ wamp64 \\ www \\ larasocial \\ vendor \\ doctrine \\ inflector \\ tests \\ Doctrine \\ Tests \\ Common \\ Inflector \\ InflectorTest.php中是否存在任何檢查錯誤,例如DoctrineTestCaseTestCase被突出顯示?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM