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

Tests for Source Code Loaders #75

Open
swissspidy opened this issue Oct 30, 2018 · 0 comments
Open

Tests for Source Code Loaders #75

swissspidy opened this issue Oct 30, 2018 · 0 comments
Labels
[Component] Tests Focus on automated testing [Status] Help Wanted [Type] Enhancement New functionality

Comments

@swissspidy
Copy link
Collaborator

Extracted from #70:

We don't want to test if Git/Mercurial/Subversion are actually working, but whether the behavior of the classes is correct. Otherwise tests fail if the software isn't installed on your machine (or the CI provider).

I've looked into https://github.com/php-mock/php-mock-phpunit and https://github.com/mikehaertl/php-shellcommand for mocking exec() calls and some sort of Command dependency injection.

@swissspidy swissspidy added the [Type] Enhancement New functionality label Oct 30, 2018
@swissspidy swissspidy added this to the Ongoing milestone Oct 30, 2018
@swissspidy swissspidy removed this from the Ongoing milestone Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Tests Focus on automated testing [Status] Help Wanted [Type] Enhancement New functionality
Projects
None yet
Development

No branches or pull requests

1 participant