Exemplo n.º 1
0
 public function testConfiguration()
 {
     $invoker = new \Magento\TestFramework\Utility\AggregateInvoker($this);
     $invoker(function ($path) {
         $xml = simplexml_load_file($path);
         $classes = \Magento\TestFramework\Utility\Classes::collectClassesInConfig($xml);
         $this->_assertNonFactoryName($classes, $path);
         $modules = \Magento\TestFramework\Utility\Classes::getXmlAttributeValues($xml, '//@module', 'module');
         $this->_assertNonFactoryName(array_unique($modules), $path, false, true);
     }, \Magento\TestFramework\Utility\Files::init()->getConfigFiles());
 }
Exemplo n.º 2
0
 public function testConfigFiles()
 {
     $invoker = new \Magento\TestFramework\Utility\AggregateInvoker($this);
     $invoker(function ($path) {
         $classes = \Magento\TestFramework\Utility\Classes::collectClassesInConfig(simplexml_load_file($path));
         $this->_assertClassesExist($classes, $path);
     }, \Magento\TestFramework\Utility\Files::init()->getMainConfigFiles());
 }