•  
      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
    13299
    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.
    Empty
    Dev tools
    Empty
    Empty
    Empty
    Stage
    Empty
    Closed
    2019-03-20
    Attachments
    Empty
    References

    List of items referenced by or referencing this item.

    Artifact Tracker v5

    Follow-ups