Support the ongoing development of Laravel.io →
posted 10 years ago
Testing

Hi,

In PHPStorm, I have as 'PHPUnit Library' the 'custom autoloader', which is 'vendor\autoload.php'.

I have some packages in my workbench, which are registered in the 'providers'-array in app.php.

When I try to run the ExampleTest.php in PHPStorm as a PHPUnit-case, I get this:

Testing started at 19:23 ...
PHPUnit 4.2.4 by Sebastian Bergmann.


Fatal error: Class 'Thijmen\Project\ProjectServiceProvider' not found in C:\EasyPHP\data\localweb\officemanager\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php on line 157
PHP Fatal error:  Class 'Thijmen\Project\ProjectServiceProvider' not found in C:\EasyPHP\data\localweb\officemanager\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php on line 157

Process finished with exit code 255

I have this in my composer.json:

"require-dev": {
        "phpunit/phpunit": "~4.0"
    },

How to fix this? I tried php artisan dump-autoload and composer dump-autoload, but no luck so far :(

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Thijmen thijmen Joined 20 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.