mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 09:24:17 +09:00
Don't dump error log to screen during unit test of Debug class
This commit is contained in:
parent
0fb30425a0
commit
990876515b
1 changed files with 16 additions and 0 deletions
|
|
@ -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__;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue