magento2: Cannot run PHPUnit in 2.3.3 due to Mcrypt deprecation

Attempting to run PHPUnit under Magento 2.3.3 on PHP 7.1.33 and I get

PHPUnit\Framework\Exception: Deprecated: Function mcrypt_module_open() is deprecated in /var/www/src/public/vendor/magento/framework/Encryption/Adapter/Mcrypt.php:55.

In Mcrypt.php, the mcrypt functions are prepended already with the error suppressor.

I tried adding error_reporting(E_ALL & ~E_DEPRECATED); into the PHPUnit bootstrap file, but it had no effect.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

@engcom-Golf sorry, but you are mistaken.

2.3.3 does support PHP 7.1 https://github.com/magento/magento2/blob/2.3.3/composer.json