Skip to content

Commit 042b82f

Browse files
authored
Merge pull request #1 from magento-pangolin/MQE-2195
MQE-2314: Merge MFTF SVC to SVC Master
2 parents 5663771 + b05b6af commit 042b82f

File tree

299 files changed

+9531
-137
lines changed

Some content is hidden

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

299 files changed

+9531
-137
lines changed

bin/svc

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ if (PHP_SAPI !== 'cli') {
2121
}
2222

2323
try {
24-
$application = new Application();
24+
$composerContents = json_decode(file_get_contents(__DIR__ . '/../composer.json'), true);
25+
$application = new Symfony\Component\Console\Application(
26+
$composerContents['description'],
27+
$composerContents['version']
28+
);
2529
$application->add(new CompareSourceCommand());
2630
$application->run();
2731
} catch (\Exception $e) {

composer.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
{
22
"name": "magento/magento-semver",
3-
"description": "Magento semantic version checker",
4-
"version": "6.0.0",
3+
"description": "Magento Semantic Version Checker",
4+
"version": "7.0.0",
55
"license": [
66
"OSL-3.0",
77
"AFL-3.0"
88
],
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

+119-72
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
declare(strict_types=1);
8+
9+
namespace Magento\SemanticVersionChecker\Analyzer\Factory;
10+
11+
use Magento\SemanticVersionChecker\Analyzer\Analyzer;
12+
use Magento\SemanticVersionChecker\Analyzer\AnalyzerInterface;
13+
use Magento\SemanticVersionChecker\Analyzer\Mftf\ActionGroupAnalyzer;
14+
use Magento\SemanticVersionChecker\Analyzer\Mftf\DataAnalyzer;
15+
use Magento\SemanticVersionChecker\Analyzer\Mftf\MetadataAnalyzer;
16+
use Magento\SemanticVersionChecker\Analyzer\Mftf\PageAnalyzer;
17+
use Magento\SemanticVersionChecker\Analyzer\Mftf\SectionAnalyzer;
18+
use Magento\SemanticVersionChecker\Analyzer\Mftf\TestAnalyzer;
19+
use Magento\SemanticVersionChecker\Analyzer\Mftf\SuiteAnalyzer;
20+
use Magento\SemanticVersionChecker\ClassHierarchy\DependencyGraph;
21+
use Magento\SemanticVersionChecker\MftfReport;
22+
23+
/**
24+
* Mftf analyzers factory
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+
new SuiteAnalyzer($report)
43+
];
44+
45+
return new Analyzer($analyzers);
46+
}
47+
}

0 commit comments

Comments
 (0)