parseDomain() публичный Метод

Parse the XML data, adding them to the $ret array
public parseDomain ( SimpleXMLElement $xml, array &$ret ) : void
$xml SimpleXMLElement The XML data of the component's configuration area
$ret array
Результат void
Пример #1
0
 /**
  * @covers  FOF30\Configuration\Domain\Authentication::get
  *
  * @dataProvider getTestGet
  *
  * @param   string  $key       Key to read
  * @param   mixed   $default   Default value
  * @param   mixed   $expected  Expected value
  * @param   string  $message   Failure message
  *
  * @return  void
  */
 public function testGet($key, $default, $expected, $message)
 {
     $auth = new Authentication();
     $ret = array();
     $file = __DIR__ . '/../../_data/configuration/authentication.xml';
     $xml = simplexml_load_file($file);
     $auth->parseDomain($xml, $ret);
     $actual = $auth->get($ret, $key, $default);
     $this->assertEquals($expected, $actual, $message);
 }