Lack of comment in the doubled class causes "ParseError: syntax error, unexpected 'if' (T_IF), expecting function (T_FUNCTION) or const (T_CONST)" · Issue #185 · Codeception/AspectMock · GitHub
Fatal error: Declaration of Codeception\Test\Test::run(?PHPUnit\Framework\TestResult $result = NULL) must be compatible with PHPUnit\Framework\Test::run · Issue #4978 · Codeception/Codeception · GitHub
Codeception
php - Codeception error "Class Yii not found" when trying to run - Stack Overflow