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