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

Only load PHPUnit dependencies if using PHPUnit #22

Closed
3 tasks done
sirbrillig opened this issue Oct 24, 2017 · 0 comments
Closed
3 tasks done

Only load PHPUnit dependencies if using PHPUnit #22

sirbrillig opened this issue Oct 24, 2017 · 0 comments

Comments

@sirbrillig
Copy link
Owner

sirbrillig commented Oct 24, 2017

It might be best to move the PHPUnit assertions to a separate library or at least conditionally load it only if we are inside PHPUnit. That would allow Spies to be more easily re-used in other test runners such as corretto or atoum.

See also #21, which is related.

  • Separate PHPUnit from Expectations
  • Conditionally load PHPUnit assertions only if PHPUnit is available
  • Move phpunit (and patchwork) from dependency to dev dependency
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