Don't dump error log to screen during unit test of Debug class

This commit is contained in:
Kijin Sung 2017-02-27 22:47:02 +09:00
parent 0fb30425a0
commit 990876515b

View file

@ -2,6 +2,22 @@
class DebugTest extends \Codeception\TestCase\Test
{
public $error_log;
public function _before()
{
$this->error_log = ini_get('error_log');
ini_set('error_log', '/dev/null');
}
public function _after()
{
if ($this->error_log)
{
ini_set('error_log', $this->error_log);
}
}
public function testDebugEntry()
{
$file = __FILE__;