Пример #1
0
 /**
  * Tests if the initialization from a configuration instance works as expected.
  *
  * @return void
  */
 public function testInitFromConfiguration()
 {
     // initialize the configuration
     $configuration = new Configuration();
     $configuration->initFromFile(__DIR__ . '/_files/location.xml');
     // initialize the location node
     $this->location->setNodeName('location');
     $this->location->initFromConfiguration($configuration);
     // validate the node
     $this->validate();
 }