You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
second and third route test will fail because invalid json was returned.
After some debugging I found out that same php://temp stream is being used for writing response of every route. Response of the second route will be written over response of the first route and if the second response is shorter than the first, part of the first response will still be returned and fail the test because of invalid format.
The text was updated successfully, but these errors were encountered:
During api testing with Codeception I tried to test multiple routes in same test using
@DataProvider
. If I specified 1 route, for example:test will work as expected.
After adding 2 or more routes in data provider, for example:
second and third route test will fail because invalid json was returned.
After some debugging I found out that same
php://temp
stream is being used for writing response of every route. Response of the second route will be written over response of the first route and if the second response is shorter than the first, part of the first response will still be returned and fail the test because of invalid format.The text was updated successfully, but these errors were encountered: