Skip to content

Use auto loading for the client #2

Open

Description

@christeredvartsen

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.

Activity

  1. christeredvartsen commented on Feb 3, 2013

    @christeredvartsen
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions