Closed wodka closed 5 years ago
Experiencing the same for larger apps with lots of integration tests (zf3 + doctrine2). The memory piles up for every single test that was executed. This affects all test that inherit from AbstractHttpControllerTestCase
.
Same issue. This is due to the global state in ZF3.
@snapshotpl could you point me to where the global state is hold in zf3? Maybe it is possible to clear or reset the state in order to overcome this memory collection madness.
@porebskk, @snapshotpl, @wodka I'm looking into this issue.
I just ran into an out of memory error and tried to figure out why it is happening. The moment the Application is used the memory goes up and never down.
Code to reproduce the issue
Depending on how much memory you want it to consume you can increase the array size of the data provider.
Expected results
I would expect the memory to stay low - ie similar to not using the Application (~6Mb for all tests)
Actual results
Memory usage keeps growing