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 gr...@apache.org on 2009/08/27 09:04:19 UTC
svn commit: r808303 -
/incubator/log4php/trunk/src/test/php/LoggerFilterTest.php
Author: grobmeier
Date: Thu Aug 27 07:04:19 2009
New Revision: 808303
URL: http://svn.apache.org/viewvc?rev=808303&view=rev
Log:
added "activateOptions should not throw an exception" check
Modified:
incubator/log4php/trunk/src/test/php/LoggerFilterTest.php
Modified: incubator/log4php/trunk/src/test/php/LoggerFilterTest.php
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/test/php/LoggerFilterTest.php?rev=808303&r1=808302&r2=808303&view=diff
==============================================================================
--- incubator/log4php/trunk/src/test/php/LoggerFilterTest.php (original)
+++ incubator/log4php/trunk/src/test/php/LoggerFilterTest.php Thu Aug 27 07:04:19 2009
@@ -28,7 +28,8 @@
public function testDecide() {
$filter = new MyFilter();
-
+ // activateOptions is empty, but should at least throw no exeception
+ $filter->activateOptions();
$eventError = new LoggerLoggingEvent("LoggerAppenderEchoTest", new Logger("TEST"), LoggerLevel::getLevelError(), "testmessage");
$eventDebug = new LoggerLoggingEvent("LoggerAppenderEchoTest", new Logger("TEST"), LoggerLevel::getLevelDebug(), "testmessage");
$eventWarn = new LoggerLoggingEvent("LoggerAppenderEchoTest", new Logger("TEST"), LoggerLevel::getLevelWarn(), "testmessage");