/**
  * Test that restricted entities are not used in PHP files
  * @return void
  */
 public function testPhpFiles()
 {
     $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
     $testFiles = \Magento\TestFramework\Utility\ChangedFiles::getPhpFiles(__DIR__ . '/_files/changed_files*');
     foreach (self::$_fixtureFiles as $fixtureFile) {
         if (array_key_exists(BP . $fixtureFile, $testFiles)) {
             unset($testFiles[BP . $fixtureFile]);
         }
     }
     $invoker(function ($file) {
         $this->_testRestrictedClasses($file);
     }, $testFiles);
 }
 public function testPhpFiles()
 {
     $invoker = new AggregateInvoker($this);
     $changedFiles = ChangedFiles::getPhpFiles(__DIR__ . '/_files/changed_files*');
     $blacklistFiles = $this->getBlacklistFiles();
     foreach ($blacklistFiles as $blacklistFile) {
         unset($changedFiles[$blacklistFile]);
     }
     $invoker(function ($file) {
         $content = file_get_contents($file);
         $this->_testObsoleteClasses($content);
         $this->_testObsoleteNamespaces($content);
         $this->_testObsoleteMethods($content, $file);
         $this->_testGetChildSpecialCase($content, $file);
         $this->_testGetOptionsSpecialCase($content);
         $this->_testObsoleteMethodArguments($content);
         $this->_testObsoleteProperties($content);
         $this->_testObsoleteActions($content);
         $this->_testObsoleteConstants($content);
         $this->_testObsoletePropertySkipCalculate($content);
     }, $changedFiles);
 }
 public function testPhpFiles()
 {
     $invoker = new \Magento\TestFramework\Utility\AggregateInvoker($this);
     $invoker(function ($file) {
         $content = file_get_contents($file);
         $this->_testObsoleteClasses($content);
         $this->_testObsoleteNamespaces($content);
         $this->_testObsoleteMethods($content, $file);
         $this->_testGetChildSpecialCase($content, $file);
         $this->_testGetOptionsSpecialCase($content);
         $this->_testObsoleteMethodArguments($content);
         $this->_testObsoleteProperties($content);
         $this->_testObsoleteActions($content);
         $this->_testObsoleteConstants($content);
         $this->_testObsoletePropertySkipCalculate($content);
     }, \Magento\TestFramework\Utility\ChangedFiles::getPhpFiles(__DIR__ . '/_files/changed_files.txt'));
 }