Skip to content
New issue

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

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

Already on GitHub? # 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
# for free to join this conversation on GitHub. Already have an account? # 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