From ef4b288f1606a01b4bc2a9332226d2d13d3be9f5 Mon Sep 17 00:00:00 2001 From: berfinyuksel Date: Wed, 4 Feb 2026 11:43:57 +0100 Subject: [PATCH] Fix PHPUnit MockObject Generator missing class error - Update codeception/module-asserts from ^2.0.1 to ^3.0 for Codeception 5.x compatibility - Add codeception/stub ^4.0 to provide PHPUnit mock/stub wrapper - Ensures compatibility with PHPUnit 10.5 and PHP 8.1-8.3 Fixes the "Class PHPUnit\Framework\MockObject\Generator not found" error in Codeception tests. --- composer.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index ffd7353d..222e0f06 100644 --- a/composer.json +++ b/composer.json @@ -26,9 +26,11 @@ "require-dev": { "phpstan/phpstan": "^1.10.30", "phpstan/phpstan-symfony": "^1.3.2", + "phpunit/phpunit": "^10.5", "codeception/codeception": "^5.0.11", - "codeception/module-asserts": "^2.0.1", - "codeception/module-symfony":"^3.1.1", + "codeception/module-asserts": "^3.0", + "codeception/module-symfony": "^3.1.1", + "codeception/stub": "^4.0", "pimcore/elasticsearch-client": "^1.0.0", "pimcore/opensearch-client": "^1.0.0" },