我正在使用PHPUnit测试一个大量使用mcrypt的项目。我已经使用this SO answer安装了phpunit。
每当我尝试运行phpunit时,我都会得到以下错误:
Fatal error: Call to undefined function mcrypt_create_iv() in
/files/file/using/mcrypt/thing.php on line 20如何修复此错误?我必须安装专门针对PHPUnit的mcrpyt吗?
发布于 2014-09-02 02:28:52
您可以安装MCrypt (无论如何都应该这样做),也可以将该特定测试标记为一个requiring MCrypt。如果您没有安装MCrypt,后者将导致跳过测试。
https://stackoverflow.com/questions/24967135
复制相似问题