use LOGS constant

This commit is contained in:
Rachman Chavik 2012-05-11 08:32:00 +07:00
parent 73c66e2df4
commit 15a74722b3

View file

@ -361,10 +361,10 @@ TEXT;
$this->assertRegExp('/DebuggerTest\:\:testLog/i', $result);
$this->assertRegExp("/'cool'/", $result);
unlink(TMP . 'logs' . DS . 'debug.log');
unlink(LOGS . 'debug.log');
Debugger::log(array('whatever', 'here'));
$result = file_get_contents(TMP . 'logs' . DS . 'debug.log');
$result = file_get_contents(LOGS . 'debug.log');
$this->assertRegExp('/DebuggerTest\:\:testLog/i', $result);
$this->assertRegExp('/\[main\]/', $result);
$this->assertRegExp('/array/', $result);