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

If PHPUnit is not installed, ignore tests/src directories #240

Open
mglaman opened this issue Jul 28, 2021 · 2 comments
Open

If PHPUnit is not installed, ignore tests/src directories #240

mglaman opened this issue Jul 28, 2021 · 2 comments

Comments

@mglaman
Copy link
Owner

mglaman commented Jul 28, 2021

If PHPUnit isn't added to the Drupal project, let's add tests/src as excluded directories to avoid TestCase class not found errors

@mglaman
Copy link
Owner Author

mglaman commented Jul 28, 2021

Alternatively, adding phpstan/phpstan-phpunit as a dependency would provide the stubs and might be an easier work around.

@mglaman mglaman closed this as completed Feb 2, 2022
@mglaman mglaman reopened this Feb 2, 2022
@mglaman
Copy link
Owner Author

mglaman commented Feb 2, 2022

Maybe we'll keep this.

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

No branches or pull requests

1 participant