public function testCreateDbObject() { $t = array('1', '2', '3'); _Log::debug($t); $db = new _Db(_DbConfig::USERNAME, _DbConfig::PASSWORD); $this->assertEquals(gettype($db), 'object'); $db = new _Db(); $this->assertEquals(gettype($db), 'object'); }
<?php //define(_LOG_DO_DEBUG_BACKTRACE, true); //include('vendor/autoload.php'); require_once '../src/_autoload.php'; use _\_Log; _Log::debug('Hey there! This is a log that uses the built in error_log() function.'); $obj = array(1, 2, 7, 4, 2, 'blah' => 'something'); _Log::fatal($obj);
private function doFatalLog($msg, &$response = NULL) { ob_start(); $rc = _Log::fatal($msg); $response = ob_get_contents(); ob_clean(); return $rc; }