Skip to content

Commit daa2742

Browse files
Mohit.k.SharmaMohit.k.Sharma
Mohit.k.Sharma
authored and
Mohit.k.Sharma
committed
Static Checks Error Fix
1 parent aef58fa commit daa2742

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/Magento/FunctionalTestingFramework/Console/RunTestCommand.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
use Symfony\Component\Process\Process;
2121
use Magento\FunctionalTestingFramework\Exceptions\TestFrameworkException;
2222

23+
/**
24+
* @SuppressWarnings(PHPMD)
25+
*/
2326
class RunTestCommand extends BaseGenerateCommand
2427
{
2528
/**
@@ -91,8 +94,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9194
$allowSkipped
9295
);
9396

94-
if ($json !== null && is_file($json)) {
95-
$testConfiguration = file_get_contents($json);
97+
if ($json !== null) {
98+
if (is_file($json)) {
99+
$testConfiguration = file_get_contents($json);
100+
} else {
101+
$testConfiguration = $json;
102+
}
96103
}
97104

98105
if (!empty($tests)) {

0 commit comments

Comments
 (0)