logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1382272 - /logging/log4php/trunk/src/test/php/LoggerTestHelper.php
Date Sat, 08 Sep 2012 09:50:37 GMT
Author: ihabunek
Date: Sat Sep  8 09:50:36 2012
New Revision: 1382272

URL: http://svn.apache.org/viewvc?rev=1382272&view=rev
Log:
Better phpdocs for LoggerTestHelper (enables usage of code assist for those methods).

Modified:
    logging/log4php/trunk/src/test/php/LoggerTestHelper.php

Modified: logging/log4php/trunk/src/test/php/LoggerTestHelper.php
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/test/php/LoggerTestHelper.php?rev=1382272&r1=1382271&r2=1382272&view=diff
==============================================================================
--- logging/log4php/trunk/src/test/php/LoggerTestHelper.php (original)
+++ logging/log4php/trunk/src/test/php/LoggerTestHelper.php Sat Sep  8 09:50:36 2012
@@ -27,32 +27,50 @@
 /** A set of helper functions for running tests. */
 class LoggerTestHelper {
 	
-	/** Returns a test logging event with level set to TRACE. */
+	/** 
+	 * Returns a test logging event with level set to TRACE. 
+	 * @return LoggerLoggingEvent
+	 */
 	public static function getTraceEvent($message = 'test', $logger = "test") {
 		return new LoggerLoggingEvent(__CLASS__, new Logger($logger), LoggerLevel::getLevelTrace(),
$message);
 	}
 	
-	/** Returns a test logging event with level set to DEBUG. */
+	/** 
+	 * Returns a test logging event with level set to DEBUG. 
+	 * @return LoggerLoggingEvent
+	 */
 	public static function getDebugEvent($message = 'test', $logger = "test") {
 		return new LoggerLoggingEvent(__CLASS__, new Logger($logger), LoggerLevel::getLevelDebug(),
$message);
 	}
 	
-	/** Returns a test logging event with level set to INFO. */
+	/** 
+	 * Returns a test logging event with level set to INFO.
+	 * @return LoggerLoggingEvent 
+	 */
 	public static function getInfoEvent($message = 'test', $logger = "test") {
 		return new LoggerLoggingEvent(__CLASS__, new Logger($logger), LoggerLevel::getLevelInfo(),
$message);
 	}
 	
-	/** Returns a test logging event with level set to WARN. */
+	/** 
+	 * Returns a test logging event with level set to WARN. 
+	 * @return LoggerLoggingEvent
+	 */
 	public static function getWarnEvent($message = 'test', $logger = "test") {
 		return new LoggerLoggingEvent(__CLASS__, new Logger($logger), LoggerLevel::getLevelWarn(),
$message);
 	}
 	
-	/** Returns a test logging event with level set to ERROR. */
+	/** 
+	 * Returns a test logging event with level set to ERROR. 
+	 * @return LoggerLoggingEvent
+	 */
 	public static function getErrorEvent($message = 'test', $logger = "test") {
 		return new LoggerLoggingEvent(__CLASS__, new Logger($logger), LoggerLevel::getLevelError(),
$message);
 	}
 	
-	/** Returns a test logging event with level set to FATAL. */
+	/** 
+	 * Returns a test logging event with level set to FATAL. 
+	 * @return LoggerLoggingEvent
+	 */
 	public static function getFatalEvent($message = 'test', $logger = "test") {
 		return new LoggerLoggingEvent(__CLASS__, new Logger($logger), LoggerLevel::getLevelFatal(),
$message);
 	}



Mime
View raw message