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 :(
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community