I'm working on a Symfony2 bundle and ran phpunit --coverage-text
. All tests pass without any problems and I received a code coverage report, but it was incomplete and at the bottom there is the following message.
Classes: 4.08% (2/49)
Methods: 1.94% (12/619)
Lines: 1.60% (46/2867)
..
....
zend_mm_heap corrupted
I am on PHP 5.4.11 and I'm running the latest versions of PHPUnit and xdebug. PHPUnit always runs properly, except when I ask it to do code coverage. Here is the relevant part of my PHPUnit configuration file.
<testsuites>
<testsuite name="My Suite">
<directory>./src/Company/*Bundle/Tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src/Company/*Bundle/</directory>
</whitelist>
</filter>
I figured that it was either a memory or output buffering problem, so I tried upping the following ini directives.
output_buffering = 8192
memory_limit = 1028M
This removed the previous error but I started receiving instead a segmentation fault 11
error instead.
How do you get rid of these problems?