You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@cvinothkumar : probably your app.php has a class_alias or something like that. The problem with TestCase is that it reloads the app object including its app.php. That means: check if class_exists before class_alias. Somehting like this:
if (!class_exists('Config')) {
class_alias(Config::class, 'Config');
}
Getting below error, while running "phpunit" on my lumen project root folder.
There was 1 error:
ExampleTest::testBasicExample
ErrorException: Cannot redeclare class JWTAuth
..\bootstrap\app.php:29
..\tests\TestCase.php:12
..\vendor\laravel\lumen-framework\src\Testing\ApplicationTrait.php:35
..\vendor\laravel\lumen-framework\src\Testing\TestCase.php:43
The text was updated successfully, but these errors were encountered: