Skip to content

Commit adb0644

Browse files
committed
ReferenceTester.php: Remove path testing already done by TestCommand
If the TestCommand doesn't do its job, let the ReferenceTester crash.
1 parent d58efc8 commit adb0644

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tools/raml2html/src/Test/ReferenceTester.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,6 @@ class ReferenceTester
5454

5555
public function __construct($restApiReference, $dxpRoot, $consolePath = 'bin/console', $routingFiles = null, OutputInterface $output = null)
5656
{
57-
if (!is_file($restApiReference)) {
58-
user_error("$restApiReference doesn't exist or is not a file", E_USER_ERROR);
59-
exit(1);
60-
}
61-
if ('~' === $dxpRoot[0]) {
62-
$dxpRoot = trim(shell_exec("echo $dxpRoot"));
63-
}
64-
if (!is_dir($dxpRoot)) {
65-
user_error("$dxpRoot doesn't exist or is not a directory", E_USER_ERROR);
66-
exit(2);
67-
}
68-
6957
$this->output = $output;
7058

7159
$this->restApiReference = $restApiReference;

0 commit comments

Comments
 (0)