我在 PHP 5.3.29 安装上使用 PHPUnit 4.8。我们应用程序中的一些代码使用了弃用的mysql_*功能,PHPUnit 将这些实例的弃用通知转换为异常,从而使那些特定的测试用例失败。
mysql_*
现在我已经将 包含convertErrorsToExceptions="false"在 config.xml 中,但这似乎没有帮助,因为它仍在发生。
convertErrorsToExceptions="false"
任何人都可以帮助阐明这里可能发生的事情吗?
干杯!
编辑:在gist.github.com上添加了示例文件
php configuration phpunit exception deprecated
configuration ×1
deprecated ×1
exception ×1
php ×1
phpunit ×1