Skip to content

Commit 5076a17

Browse files
committed
MQE-2195: refactored mftf svc code and incorporated in magento-semver repo
1 parent fa819aa commit 5076a17

File tree

156 files changed

+5472
-80
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+5472
-80
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
"bin": ["bin/svc"],
1010
"require": {
1111
"php": "~7.2.29||~7.3.0||~7.4.0",
12+
"ext-json": "*",
1213
"phpstan/phpdoc-parser": "^0.3.5",
1314
"symfony/console": "~4.1.0||~4.4.0",
1415
"tomzx/php-semver-checker": "^0.14.0",
1516
"wikimedia/less.php": "~1.8.0",
1617
"zendframework/zend-stdlib": "^3.2.1",
17-
"nikic/php-parser": "^4.4"
18+
"nikic/php-parser": "^4.4",
19+
"sabre/xml": "^2.1"
1820
},
1921
"require-dev": {
2022
"phpunit/phpunit": "^6.5.0",

composer.lock

Lines changed: 118 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
8+
declare(strict_types=1);
9+
10+
namespace Magento\SemanticVersionChecker\Analyzer\Factory;
11+
12+
use Magento\SemanticVersionChecker\Analyzer\Analyzer;
13+
use Magento\SemanticVersionChecker\Analyzer\AnalyzerInterface;
14+
use Magento\SemanticVersionChecker\Analyzer\Mftf\ActionGroupAnalyzer;
15+
use Magento\SemanticVersionChecker\Analyzer\Mftf\DataAnalyzer;
16+
use Magento\SemanticVersionChecker\Analyzer\Mftf\MetadataAnalyzer;
17+
use Magento\SemanticVersionChecker\Analyzer\Mftf\PageAnalyzer;
18+
use Magento\SemanticVersionChecker\Analyzer\Mftf\SectionAnalyzer;
19+
use Magento\SemanticVersionChecker\Analyzer\Mftf\TestAnalyzer;
20+
use Magento\SemanticVersionChecker\ClassHierarchy\DependencyGraph;
21+
use Magento\SemanticVersionChecker\MftfReport;
22+
23+
/**
24+
* Build Mftf analyzer
25+
*/
26+
class MFTFAnalyzerFactory implements AnalyzerFactoryInterface
27+
{
28+
/**
29+
* @param DependencyGraph|null $dependencyGraph
30+
* @return AnalyzerInterface
31+
*/
32+
public function create(DependencyGraph $dependencyGraph = null): AnalyzerInterface
33+
{
34+
$report = new MftfReport();
35+
$analyzers = [
36+
new DataAnalyzer($report),
37+
new MetadataAnalyzer($report),
38+
new PageAnalyzer($report),
39+
new SectionAnalyzer($report),
40+
new TestAnalyzer($report),
41+
new ActionGroupAnalyzer($report)
42+
];
43+
44+
return new Analyzer($analyzers);
45+
}
46+
}

0 commit comments

Comments
 (0)