Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPUnit deprecation warning fails test

I'm using PHPUnit 4.8 on a PHP 5.3.29 install. Some of the code in our application makes use of the deprecated mysql_* functionality, and PHPUnit converts the deprecation notices of these instances to exceptions and in turn fails those specific testcases.

Now I've already included the convertErrorsToExceptions="false" in the config.xml but this doesn't seem to help as it's still happening.

Can anyone help shed some light on what might be happening here?

Cheers!

EDIT: Added example files on gist.github.com

like image 425
Revell Avatar asked Dec 18 '22 07:12

Revell


1 Answers

if you are looking solution for Symfony 3.1 and higher versions, the answer is

<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" />
like image 162
LugiHaue Avatar answered Dec 29 '22 20:12

LugiHaue