Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Develop] Fixes #4114 Cannot declare class Config\App error on running PHPUnit #4157

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

samsonasik
Copy link
Member

Fixes #4114 on Xdebug 3, changed test suite name in phpunit.xml.dist from "app" to "App" seems fixed it, changed the "system" and "database" to uppercase first char for consistency.

Checklist:

  • Securely signed commits
  • Unit testing, with >80% coverage

@samsonasik
Copy link
Member Author

/cc @kenjis please verify if this fixes the issue

@kenjis
Copy link
Member

kenjis commented Jan 26, 2021

@samsonasik "App" fixed the error. Awesome!

How did you know?

@samsonasik
Copy link
Member Author

I don't actually know the exact reason, I just gave a combination of try and error, and eventually found that change the test suite name fixed it.

@samsonasik samsonasik merged commit 7c03009 into codeigniter4:develop Jan 27, 2021
@samsonasik samsonasik deleted the fix-4114 branch January 27, 2021 00:36
@samsonasik
Copy link
Member Author

@kenjis merged, thank you for verify in your local dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: phpunit coverage report causes Cannot declare class Config\App, because the name is already in use
2 participants