1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 12:35:02 +01:00

Do not run memory leak testing test with code coverage active

This commit is contained in:
Bob Weinand 2016-08-15 15:08:09 +02:00
parent 83ceb7f5f8
commit 0f5460fd0f

View File

@ -354,6 +354,10 @@ abstract class Test extends \PHPUnit_Framework_TestCase {
/** @dataProvider provideRegistrationArgs */
function testNoMemoryLeak($type, $args)
{
if ($this->getTestResultObject()->getCollectCodeCoverageInformation()) {
$this->markTestSkipped("Cannot run this test with code coverage active [code coverage consumes memory which makes it impossible to rely on memory_get_usage()]");
}
$runs = 2000;
if ($type === "onSignal") {