Author: grobmeier
Date: Fri Aug 28 04:57:30 2009
New Revision: 808753

URL: http://svn.apache.org/viewvc?rev=808753&view=rev
Log:
added threshold test on configuration level

Modified:
    
incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php
    incubator/log4php/trunk/src/test/php/configurators/test4.properties

Modified: 
incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php?rev=808753&r1=808752&r2=808753&view=diff
==============================================================================
--- 
incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php
 (original)
+++ 
incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php
 Fri Aug 28 04:57:30 2009
@@ -108,5 +108,9 @@
                $e = LoggerLevel::getLevelInfo();
                self::assertEquals($e,$threshold);
                
+               $threshold = Logger::getHierarchy()->getThreshold();
+               self::assertTrue($threshold instanceof LoggerLevel);
+               $e = LoggerLevel::getLevelWarn();
+               self::assertEquals($e,$threshold);
        }
 }

Modified: incubator/log4php/trunk/src/test/php/configurators/test4.properties
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/test/php/configurators/test4.properties?rev=808753&r1=808752&r2=808753&view=diff
==============================================================================
--- incubator/log4php/trunk/src/test/php/configurators/test4.properties 
(original)
+++ incubator/log4php/trunk/src/test/php/configurators/test4.properties Fri Aug 
28 04:57:30 2009
@@ -21,4 +21,5 @@
 log4php.appender.blub.layout = LoggerLayoutSimple
 log4php.appender.blub.threshold = INFO
 
+log4php.threshold = WARN
 log4php.rootCategory = WARN, default, blub


Reply via email to