public function testNULLObjectLog() { _Log::$logEcho = true; _Log::$logLevel = _LogContants::DEBUG; $rc = self::doDebugLog(NULL, $response); $matchesLogFormat = preg_match('/\\*\\*\\*\\*\\* \\[ _Log \\]\\[ DEBUG \\] \\[ NULL - Object is not set \\] \\*\\*\\*\\*\\*/', $response); $this->assertEquals(1, $matchesLogFormat); $rc = self::doInfoLog(NULL, $response); $matchesLogFormat = preg_match('/\\*\\*\\*\\*\\* \\[ _Log \\]\\[ INFO \\] \\[ NULL - Object is not set \\] \\*\\*\\*\\*\\*/', $response); $this->assertEquals(1, $matchesLogFormat); $rc = self::doWarnLog(NULL, $response); $matchesLogFormat = preg_match('/\\*\\*\\*\\*\\* \\[ _Log \\]\\[ WARN \\] \\[ NULL - Object is not set \\] \\*\\*\\*\\*\\*/', $response); $this->assertEquals(1, $matchesLogFormat); $rc = self::doCritLog(NULL, $response); $matchesLogFormat = preg_match('/\\*\\*\\*\\*\\* \\[ _Log \\]\\[ CRIT \\] \\[ NULL - Object is not set \\] \\*\\*\\*\\*\\*/', $response); $this->assertEquals(1, $matchesLogFormat); $rc = self::doFatalLog(NULL, $response); $matchesLogFormat = preg_match('/\\*\\*\\*\\*\\* \\[ _Log \\]\\[ FATAL \\] \\[ NULL - Object is not set \\] \\*\\*\\*\\*\\*/', $response); $this->assertEquals(1, $matchesLogFormat); }