相关疑难解决方法(0)

PHPUnit 弃用警告未通过测试

我在 PHP 5.3.29 安装上使用 PHPUnit 4.8。我们应用程序中的一些代码使用了弃用的mysql_*功能,PHPUnit 将这些实例的弃用通知转换为异常,从而使那些特定的测试用例失败。

现在我已经将 包含convertErrorsToExceptions="false"在 config.xml 中,但这似乎没有帮助,因为它仍在发生。

任何人都可以帮助阐明这里可能发生的事情吗?

干杯!

编辑:在gist.github.com上添加了示例文件

php configuration phpunit exception deprecated

3
推荐指数
2
解决办法
4575
查看次数

标签 统计

configuration ×1

deprecated ×1

exception ×1

php ×1

phpunit ×1