-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Can't disable exception trace #656
Description
When running a failing unit test, the exception trace is shown after each test is executed:
4) DBConstraintsTest::testABC
Failed asserting that '2' matches expected 0.
codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsEqual.php:170
codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php:2134
codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php:475
/.../tests/unit/DBConstraintsTest.php:97
codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:983
codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:838
codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:648
codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:783
codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:775
codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:745
After some researching, I found that it may be caused by xdebug being activated (although PHPUnit deactivates by default), so I added this to my _bootstrap.php:
xdebug_disable();
ini_set('xdebug.show_exception_trace', 0);Yes, both, just in case. But it still appeared, so I limited the TRACE LEVEL to see if it affected in any way:
define('YII_TRACE_LEVEL',0);It didn't change anything. I edited my CLI php.ini file to set xdebug.show_exception_trace and restarted apache. Nothing. I tried running the test with --debug and without it, but still no changes.
I have searched the documentation but can't find anything. All the test are being run from the terminal, no IDE. I also use the Yii1 module.
Is there any way to disable that output, or is it just a bug?
Thanks