Skip to content

Commit 43cfb26

Browse files
committed
PHPUnitCommand: Disable memory limit for phpdbg run
This is to prevent memory exhausted error when test coverage is requested.
1 parent f9a761b commit 43cfb26

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt
1414
This resolves an issue where an "Unable to find local grunt" message was reported when code was structured in a legacy
1515
format. See #46 for more details.
1616

17+
### Changed
18+
- `moodle-plugin-ci phpunit` when coverage report is included, phpdbg is called with ignore memory limits param
19+
to avoid memory exhaused errors.
20+
1721
## [3.0.3] - 2020-10-16
1822
### Changed
1923
- Updated version of [moodle-local_codechecker](https://github.com/moodlehq/moodle-local_codechecker) to v2.9.8.

src/Command/PHPUnitCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private function resolveBinary(InputInterface $input)
9999
return '';
100100
}
101101

102-
return 'phpdbg -qrr ';
102+
return 'phpdbg -d memory_limit=-1 -qrr ';
103103
}
104104

105105
/**

0 commit comments

Comments
 (0)