1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-17 07:46:29 +02:00

Added E107_DBG_BASIC constant. More tests added for pdo and debug classes.

This commit is contained in:
Cameron
2019-02-10 19:01:09 -08:00
parent 17eff8de71
commit ca133074b8
3 changed files with 67 additions and 24 deletions

View File

@@ -13,10 +13,6 @@
/** @var e107_db_debug */
protected $dbg;
protected function _beforeSuite()
{
define('E107_DBG_BASIC', true);
}
protected function _before()
{
@@ -59,17 +55,13 @@
public function testLog()
{
// fails , already defined?
$res = $this->dbg->log('hello world');
$this->assertTrue($res, 'db_debug->log() method returned false.');
$result = $this->dbg->Show_Log();
$this->assertContains('e107_db_debugTest->testLog()',$result);
// var_dump($result);
}
/*
public function testLogCode()