-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from magento-pangolin/MQE-2195
MQE-2314: Merge MFTF SVC to SVC Master
- Loading branch information
Showing
299 changed files
with
9,531 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Magento\SemanticVersionChecker\Analyzer\Factory; | ||
|
||
use Magento\SemanticVersionChecker\Analyzer\Analyzer; | ||
use Magento\SemanticVersionChecker\Analyzer\AnalyzerInterface; | ||
use Magento\SemanticVersionChecker\Analyzer\Mftf\ActionGroupAnalyzer; | ||
use Magento\SemanticVersionChecker\Analyzer\Mftf\DataAnalyzer; | ||
use Magento\SemanticVersionChecker\Analyzer\Mftf\MetadataAnalyzer; | ||
use Magento\SemanticVersionChecker\Analyzer\Mftf\PageAnalyzer; | ||
use Magento\SemanticVersionChecker\Analyzer\Mftf\SectionAnalyzer; | ||
use Magento\SemanticVersionChecker\Analyzer\Mftf\TestAnalyzer; | ||
use Magento\SemanticVersionChecker\Analyzer\Mftf\SuiteAnalyzer; | ||
use Magento\SemanticVersionChecker\ClassHierarchy\DependencyGraph; | ||
use Magento\SemanticVersionChecker\MftfReport; | ||
|
||
/** | ||
* Mftf analyzers factory | ||
*/ | ||
class MftfAnalyzerFactory implements AnalyzerFactoryInterface | ||
{ | ||
/** | ||
* @param DependencyGraph|null $dependencyGraph | ||
* @return AnalyzerInterface | ||
*/ | ||
public function create(DependencyGraph $dependencyGraph = null): AnalyzerInterface | ||
{ | ||
$report = new MftfReport(); | ||
$analyzers = [ | ||
new DataAnalyzer($report), | ||
new MetadataAnalyzer($report), | ||
new PageAnalyzer($report), | ||
new SectionAnalyzer($report), | ||
new TestAnalyzer($report), | ||
new ActionGroupAnalyzer($report), | ||
new SuiteAnalyzer($report) | ||
]; | ||
|
||
return new Analyzer($analyzers); | ||
} | ||
} |
Oops, something went wrong.