You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by ih...@apache.org on 2011/06/20 08:28:53 UTC

svn commit: r1137518 - /logging/log4php/trunk/src/test/php/appenders/LoggerAppenderMongoDBTest.php

Author: ihabunek
Date: Mon Jun 20 06:28:53 2011
New Revision: 1137518

URL: http://svn.apache.org/viewvc?rev=1137518&view=rev
Log:
LoggerAppenderMongoDBTest: skipped test which uses PHP 5.3 features if PHP version is lower.

Modified:
    logging/log4php/trunk/src/test/php/appenders/LoggerAppenderMongoDBTest.php

Modified: logging/log4php/trunk/src/test/php/appenders/LoggerAppenderMongoDBTest.php
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/test/php/appenders/LoggerAppenderMongoDBTest.php?rev=1137518&r1=1137517&r2=1137518&view=diff
==============================================================================
--- logging/log4php/trunk/src/test/php/appenders/LoggerAppenderMongoDBTest.php (original)
+++ logging/log4php/trunk/src/test/php/appenders/LoggerAppenderMongoDBTest.php Mon Jun 20 06:28:53 2011
@@ -193,6 +193,12 @@ class LoggerAppenderMongoDBTest extends 
 	}
 	
 	public function testFormatThrowableInfoWithInnerException() {
+		
+		// Skip test if PHP version is lower than 5.3.0 (no inner exception support)
+		if (version_compare(PHP_VERSION, '5.3.0') < 0) {
+			$this->markTestSkipped();
+		}
+		
 		$event = new LoggerLoggingEvent(
 			'testFqcn',
 			new Logger('test.Logger'),