•  
      request #21326 Favor PHPUnit mock system over Mockery
    Infos
    #21326
    Thomas Gerbet (tgerbet)
    2021-05-20 16:12
    2021-05-06 10:53
    22921
    Details
    Favor PHPUnit mock system over Mockery

    Mockery was first introduced to the Tuleap codebase to help us migrate away from SimpleTest to PHPUnit. This migration is now done and Mockery generates us more work than using directly PHPUnit native mock system (less integrations with the other tools, new PHP version supports...).

    This request will covers the following points:

    • ADR
    • force the usage of strict mock with PHPUnit
    • convert the OAuth2 Server plugin to the PHPUnit mock system as a demonstration
    • transform helpers Tuleap\GlobalLanguageMock and Tuleap\GlobalResponseMock to use PHPUnit mock system
    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-05-11
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2021-05-07 13:09
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes