test: raise memory_limit for the unit suite (512M)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
2026-09-27 00:30:03 +02:00
co-authored by Claude Opus 5.5
parent cfc81ddbb2
commit 404f0f34b9
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
"psr-4": { "LIT\\MCP\\Tests\\": "tests/" } "psr-4": { "LIT\\MCP\\Tests\\": "tests/" }
}, },
"scripts": { "scripts": {
"test": "@php vendor/bin/phpunit", "test": "@php -d memory_limit=512M vendor/bin/phpunit",
"lint": "@php vendor/bin/phpcs" "lint": "@php vendor/bin/phpcs"
}, },
"config": { "config": {
+4
View File
@@ -3,6 +3,10 @@
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="tests/bootstrap.php" bootstrap="tests/bootstrap.php"
colors="true"> colors="true">
<php>
<!-- 1597+ tests with Mockery/Brain Monkey need ~180 MB; the CLI default is 128 MB. -->
<ini name="memory_limit" value="512M"/>
</php>
<testsuites> <testsuites>
<testsuite name="unit"> <testsuite name="unit">
<directory>tests/Unit</directory> <directory>tests/Unit</directory>