public function testXmlValidityOfLayoutFiles()
 {
     $xmlFileProvider = new XmlFileProvider(__DIR__ . '/../../layouts');
     $listOfLayoutXmlFiles = $xmlFileProvider->getFiles();
     $this->assertNotEmpty($listOfLayoutXmlFiles);
     $this->assertXmlFiles($listOfLayoutXmlFiles);
 }
 public function domElementProviderFromDeployedLayoutFiles()
 {
     $xmlFileProvider = new XmlFileProvider(__DIR__ . '/../../../layouts');
     $files = $xmlFileProvider->getFiles();
     $elements = array();
     foreach ($files as $file) {
         $elements = array_merge($elements, $this->getDomElementsFromFile($file));
     }
     if (count($elements) === 0) {
         $elements[] = null;
     }
     $provider = array_chunk($elements, 1);
     return $provider;
 }