Author: chammers
Date: Mon Oct 5 21:58:39 2009
New Revision: 822041
URL: http://svn.apache.org/viewvc?rev=822041&view=rev
Log:
Even LoggerAppenderNull ist not supposed to log "null" :) Does no longer work
after changing all the appenders to: append(LoggerLoggingEvent $event).
Modified:
incubator/log4php/branches/chammers/src/test/php/appenders/LoggerAppenderNullTest.php
Modified:
incubator/log4php/branches/chammers/src/test/php/appenders/LoggerAppenderNullTest.php
URL:
http://svn.apache.org/viewvc/incubator/log4php/branches/chammers/src/test/php/appenders/LoggerAppenderNullTest.php?rev=822041&r1=822040&r2=822041&view=diff
==============================================================================
---
incubator/log4php/branches/chammers/src/test/php/appenders/LoggerAppenderNullTest.php
(original)
+++
incubator/log4php/branches/chammers/src/test/php/appenders/LoggerAppenderNullTest.php
Mon Oct 5 21:58:39 2009
@@ -28,10 +28,12 @@
* The Null appender does nothing - nothing to assert.
* Just here for the sake of completness and a good testing ratio :-)
*/
- public function testActivateOptions() {
+ public function testActivateOptions() {
+ $event = new LoggerLoggingEvent("LoggerAppenderNullTest", new
Logger("TEST"), LoggerLevel::getLevelInfo(), "testmessage");
+
$appender = new LoggerAppenderNull("TEST");
$appender->activateOptions();
- $appender->append(null);
+ $appender->append($event);
$appender->close();
}
}