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

Add tests for svn workflow #2

Merged
merged 15 commits into from
Feb 28, 2019
Merged

Add tests for svn workflow #2

merged 15 commits into from
Feb 28, 2019

Conversation

sirbrillig
Copy link
Owner

This refactors the svn workflow functionality so that it can be tested and adds unit tests for each part.

This refactors the workflow functions so that they return a
PhpcsMessages object which makes them easier to test. The object is then
formatted and output by a separate function.

This change also modifies the `is_readable()` guard in
`runSvnWorkflow()` to be injected so it can be mocked for testing.
@sirbrillig sirbrillig marked this pull request as ready for review February 28, 2019 22:07
@sirbrillig sirbrillig merged commit f8f124a into master Feb 28, 2019
@sirbrillig sirbrillig deleted the add-tests-for-svn branch February 28, 2019 23:17
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.

1 participant