mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-23 12:22:15 +09:00
Add option to control error logging
This commit is contained in:
parent
3291375fc4
commit
cf6c5f727e
8 changed files with 31 additions and 13 deletions
|
|
@ -5,8 +5,7 @@ class DebugTest extends \Codeception\TestCase\Test
|
|||
public function testDebugEntry()
|
||||
{
|
||||
$file = __FILE__;
|
||||
$line = __LINE__ + 2;
|
||||
Rhymix\Framework\Debug::$write_to_error_log = false;
|
||||
$line = __LINE__ + 1;
|
||||
Rhymix\Framework\Debug::addEntry('foobar entry');
|
||||
$entries = Rhymix\Framework\Debug::getEntries();
|
||||
$this->assertEquals(1, count($entries));
|
||||
|
|
@ -18,8 +17,7 @@ class DebugTest extends \Codeception\TestCase\Test
|
|||
public function testDebugError()
|
||||
{
|
||||
$file = __FILE__;
|
||||
$line = __LINE__ + 2;
|
||||
Rhymix\Framework\Debug::$write_to_error_log = false;
|
||||
$line = __LINE__ + 1;
|
||||
Rhymix\Framework\Debug::addError(~0, 'Rhymix', $file, $line, null);
|
||||
$errors = Rhymix\Framework\Debug::getErrors();
|
||||
$this->assertGreaterThanOrEqual(1, count($errors));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue