PhpStorm Yii2 TestCase error - php

I'm configuring PhpStorm 8.0.1 with a basic project of Yii2, but when I run the project it show me:
Fatal error: Class 'yii\codeception\TestCase' not found in D:\Progetti\PHP\TestDue\tests\codeception\unit\models\ContactFormTest.php on line 10
Process finished with exit code 255
I setted PHP interpreter 5.6.3
anyone with this error?

Related

PHP Fatal error: Trait 'Illuminate\Database\Eloquent\Concerns\HasEvents' not found

I am trying to upload files to a live server, but I am getting this error.
PHP Fatal error: Trait
'Illuminate\Database\Eloquent\Concerns\HasEvents' not found in
/home/mysite/public_html/myapp/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
on line 25
I am using Laravel 5.4.
Have you run the composer dump-autoload

CouchBase class not found in laravel5

I use couchbase nosql database by ytake/laravel-couchbase package in my laravel 5.1 project
After install that package and run php artisan serve i got error :
PHP Fatal error: Class 'CouchbaseN1qlQuery' not found in /var/www/html/eee/vendor/ytake/laravel-couchbase/src/CouchbaseServiceProvider.php on line 71
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'CouchbaseN1qlQuery' not found
I had this error for a long time.
For me, the problem was that the CLI user couldn't write in the laravel.log when the couchbase client was trying to write a warning to it. Check user permissions.

Cannot redeclare class Stringy\Stringy

Fatal error: Cannot redeclare class Stringy\Stringy in D:\work\bookstrore-laravel\vendor\danielstjules\stringy\src\Stringy.php on line 5
i have this error when run EVERY laravel project.i'm using phpstorm 9.0.
and i can run it by php artisan serve in the project directory. i'm new with this and i really don't know why it's can't run on phpstorm

Symfony 2.5 - IvoryCKEditorBundle fatal error (class not found)

I was trying to get installed the bundle egeloen/IvoryCKEditorBundle in my Symfony 2.5 but it's my first time installing a bundle and I need specific steps to make it, I don't understand in which files I have to put the code lines to get it installed, I write the code in the README file in appKernel, autoload.php and composer.json. It runs in a local host and I Use Xampp, my OS is Windows 7.
The error I got was:
Fatal error: Class 'web\bundles\IvoryCKEditorBundle' not found in
D:...\Source\app\AppKernel.php on line 19

PHPUnit test failed

I'm currently trying to run PHPUnit on my Ubuntu 12.04 virtual machine and when I run phpunit under my application root that has phpunit.xml.dist file it reads from the config but I'm getting below error and it fails:
PHP Fatal error: Call to undefined method PHPUnit_Util_Test::getHookMethods() in phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php on line 633
Is there a reason why this is happening?
I had a similar issue in a different environment.
The problem was that another library's loader was registered too early which also contained another version of PHPUnit which had no that method. The proper order of autoloaders solved the problem.

Categories