•  
      request #13124 Ensure no mock from Mockery are created in PHPUnit data providers
    Infos
    #13124
    Thomas Gerbet (tgerbet)
    2019-03-20 14:18
    2019-03-19 16:43
    13984
    Details
    Ensure no mock from Mockery are created in PHPUnit data providers
    Data providers are executed before the running the first test of the test suite.

    Consequently, if the first test that is played does not use the MockeryPHPUnitIntegration trait the test will be marked as failed because the listener Mockery\Adapter\Phpunit\TestListener will detect that Mockery has not been "closed". Also the usage of mocks in a data provider can result in weird behaviors when some expectations are defined: expectation counts will not be set on the right test or test can ran fine when executed individually but fails when executed with the rest of the test suite.
    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2019-03-20
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Integrated into Tuleap 10.11.99.134

    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2019-03-20