/**
  * Processes operation task
  *
  * @return void
  */
 public function doOperation()
 {
     $files = $this->configurationScanner->scan('di.xml');
     $proxies = $this->proxyScanner->collectEntities($files);
     foreach ($proxies as $entityName) {
         class_exists($entityName);
     }
 }
 public function testCollectEntities()
 {
     $className = 'Magento\\Store\\Model\\Config\\Invalidator\\Proxy';
     $this->_logMock->expects($this->at(0))->method('add')->with(4, $className, 'Invalid proxy class for ' . substr($className, 0, -5));
     $this->_logMock->expects($this->at(1))->method('add')->with(4, '\\Magento\\SomeModule\\Model\\Element\\Proxy', 'Invalid proxy class for ' . substr('\\Magento\\SomeModule\\Model\\Element\\Proxy', 0, -5));
     $this->_logMock->expects($this->at(2))->method('add')->with(4, '\\Magento\\SomeModule\\Model\\Nested\\Element\\Proxy', 'Invalid proxy class for ' . substr('\\Magento\\SomeModule\\Model\\Nested\\Element\\Proxy', 0, -5));
     $actual = $this->_model->collectEntities($this->_testFiles);
     $expected = [];
     $this->assertEquals($expected, $actual);
 }
 /**
  * Processes operation task
  *
  * @return void
  */
 public function doOperation()
 {
     if (array_diff(array_keys($this->data), ['filePatterns', 'paths', 'excludePatterns']) !== array_diff(['filePatterns', 'paths', 'excludePatterns'], array_keys($this->data))) {
         return;
     }
     $files = [];
     foreach ($this->data['paths'] as $path) {
         $files = array_merge_recursive($files, $this->directoryScanner->scan($path, $this->data['filePatterns'], $this->data['excludePatterns']));
     }
     $proxies = $this->proxyScanner->collectEntities($files['di']);
     foreach ($proxies as $entityName) {
         class_exists($entityName);
     }
 }