Monday, May 22, 2017

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

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.



via Yanek Yuk

Advertisement