Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: PHPCMIS 0.2
    • Component/s: cmis-phplib
    • Labels:
      None

      Description

      Use a test framework like PHPUnit or equivalent that we may use with Hudson.
      Note: PHPUnit is a PEAR framework and has some dependencies. Provide documentation or links on how to install and use it.

        Activity

        Hide
        stefan776 Stefan Topfstedt added a comment -

        IMO one prerequisite of this would be to re-factor the REST client interface and functionality (doGet(), doPost() etc.) out into its own interface and implementing classes.
        (the default implementation would be the current, cURL-based one).
        This would open up the door for mocking-up the repository via a "test" implementation of REST client interface that can be configured to serve up canned responses instead of interacting with a real CMIS-enabled repo.
        I'd be willing to throw some time at this, pls. let me know if there is any interest in this.

        +1 for using PHPUnit btw.

        Show
        stefan776 Stefan Topfstedt added a comment - IMO one prerequisite of this would be to re-factor the REST client interface and functionality (doGet(), doPost() etc.) out into its own interface and implementing classes. (the default implementation would be the current, cURL-based one). This would open up the door for mocking-up the repository via a "test" implementation of REST client interface that can be configured to serve up canned responses instead of interacting with a real CMIS-enabled repo. I'd be willing to throw some time at this, pls. let me know if there is any interest in this. +1 for using PHPUnit btw.
        Hide
        richardm Richard McKnight added a comment -

        I agree that we should use a testing framework

        +1 on factoring out the REST client into its own interface and implementing class
        I also think that this would allow for some flexibility in supporting different authentication schemes

        Show
        richardm Richard McKnight added a comment - I agree that we should use a testing framework +1 on factoring out the REST client into its own interface and implementing class I also think that this would allow for some flexibility in supporting different authentication schemes

          People

          • Assignee:
            richardm Richard McKnight
            Reporter:
            pcollardez Patrice Collardez
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development