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

Use auto loading for the client #2

Open
christeredvartsen opened this issue Feb 1, 2013 · 1 comment
Open

Use auto loading for the client #2

christeredvartsen opened this issue Feb 1, 2013 · 1 comment

Comments

@christeredvartsen
Copy link
Contributor

Would it be possible for you to use auto loading instead of require statements for the API client? Using require statements makes unit testing for us a lot harder when trying to mock the client.

Mockery supports mocking of static public methods for classes not yet loaded, but we can't use this feature because of the existing require statements, and therefore can't write suitable tests.

@christeredvartsen
Copy link
Contributor Author

I have added support for autoloading using composer in my fork, and can send you a pull request if you want it.

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