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 ch...@apache.org on 2009/10/06 00:05:59 UTC

svn commit: r822046 - /incubator/log4php/branches/chammers/src/test/php/configurators/LoggerConfiguratorPhpTest.php

Author: chammers
Date: Mon Oct  5 22:05:58 2009
New Revision: 822046

URL: http://svn.apache.org/viewvc?rev=822046&view=rev
Log:
dirname patch to be able to run it from root directory as well as from maven

Modified:
    incubator/log4php/branches/chammers/src/test/php/configurators/LoggerConfiguratorPhpTest.php

Modified: incubator/log4php/branches/chammers/src/test/php/configurators/LoggerConfiguratorPhpTest.php
URL: http://svn.apache.org/viewvc/incubator/log4php/branches/chammers/src/test/php/configurators/LoggerConfiguratorPhpTest.php?rev=822046&r1=822045&r2=822046&view=diff
==============================================================================
--- incubator/log4php/branches/chammers/src/test/php/configurators/LoggerConfiguratorPhpTest.php (original)
+++ incubator/log4php/branches/chammers/src/test/php/configurators/LoggerConfiguratorPhpTest.php Mon Oct  5 22:05:58 2009
@@ -34,7 +34,7 @@
 	}
 	
 	public function testConfigure() {
-		Logger::configure('configurators/test1.php','LoggerConfiguratorPhp');
+		Logger::configure(dirname(__FILE__).'/test1.php','LoggerConfiguratorPhp');
 		$root = Logger::getRootLogger();
 		self::assertEquals(LoggerLevel::getLevelWarn(), $root->getLevel());
 		$appender = $root->getAppender("default");