commit | cdb720f0bf0fdd6a4071e7892ae6ce21fdbf5c6d | [log] [tgz] |
---|---|---|
author | Ivan Habunek <ihabunek@apache.org> | Sat Aug 18 16:00:30 2012 +0000 |
committer | Ivan Habunek <ihabunek@apache.org> | Sat Aug 18 16:00:30 2012 +0000 |
tree | 33f913f7dd8f1ccb2c798a70501dd4900c84915a | |
parent | 601f2404f586c51c8dbd63a52438117edf14d4ba [diff] |
LoggerConfigurationAdapterXML: Added parsing of <appender-ref> nodes, as well as <appender_ref> in loggers for backward compatibility. git-svn-id: https://svn.apache.org/repos/asf/logging/log4php/trunk@1374601 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/php/configurators/LoggerConfigurationAdapterXML.php b/src/main/php/configurators/LoggerConfigurationAdapterXML.php index cfa725f..7ee6f6d 100644 --- a/src/main/php/configurators/LoggerConfigurationAdapterXML.php +++ b/src/main/php/configurators/LoggerConfigurationAdapterXML.php Binary files differ
diff --git a/src/test/php/configurators/LoggerConfigurationAdapterXMLTest.php b/src/test/php/configurators/LoggerConfigurationAdapterXMLTest.php index db3fe99..ff71ef1 100644 --- a/src/test/php/configurators/LoggerConfigurationAdapterXMLTest.php +++ b/src/test/php/configurators/LoggerConfigurationAdapterXMLTest.php
@@ -114,6 +114,14 @@ $this->assertEquals($this->expected1, $actual); } + public function testConversion2() { + $url = PHPUNIT_CONFIG_DIR . '/adapters/xml/config_valid_underscore.xml'; + $adapter = new LoggerConfigurationAdapterXML(); + $actual = $adapter->convert($url); + + $this->assertEquals($this->expected1, $actual); + } + /** * Test exception is thrown when file cannot be found. * @expectedException LoggerException