The same is happening to me since I updated this morning. I currently have "laravel/lumen-framework": "v5.0.10"
Jun 11, 2015
3
Level 1
Problem with Unit Test
Hello,
I have a problem with Unit Test in Lumen.
When I launch phpunit I have this error :
ErrorException: Cannot redeclare class View /Applications/MAMP/htdocs/PHPTwitterAPI/bootstrap/app.php:25
In my app.php at line 25 I have : class_alias('Illuminate\Support\Facades\View', 'View');
I removed this line and replaced it with use Illuminate\Support\Facades\View;in the proper file.
But then I have this error :
ErrorException: Constant MY_CONSTANT already defined
So, it seems that my bootstrap/app.php is launched twice.
But I don't find a way to resolve my problemr
Please or to participate in this conversation.