src/Application/ConsoleApplication.php
/**
     * Parses the testfile command line parameter.
     *
     * @param string                 $value        The parameter value.
     * @param FilePathInterface|null $testfilePath The parsed path to the webunit testfile if parsing was successful.
     * @param string|null            $error        The error if parsing failed.
     *
     * @return bool True if parsing was successful, false otherwise.
     */
Parses the testfile command line parameter.
@param string                 $value        The parameter value.
@param FilePathInterface|null $testfilePath The parsed path to the webunit testfile if parsing was successful.
@param string|null            $error        The error if parsing failed.

@return bool True if parsing was successful, false otherwise.
Parses the testfile command line parameter . @param string $value The parameter value . @param FilePathInterface|null $testfilePath The parsed path to the webunit testfile if parsing was successful . @param string|null $error The error if parsing failed . @return bool True if parsing was successful false otherwise .
private function parseTestfilePathCommandLineParameter(string $value, ?FilePathInterface &$testfilePath, ?string &$error): bool
    {
        if ($testfilePath !== null) {
            $error = 'Extra testfile parameter "' . $value . '".';
            return false;
        }
        try {
            $testfilePath = FilePath::parse($value);
        } catch (FilePathInvalidArgumentException $exception) {
            $error = 'Invalid path to testfile "' . $value . '": ' . $exception->getMessage();
            return false;
        }
        return true;
    }
private function parseTestfilePathCommandLineParameter ( string $ value , ? FilePathInterface & $ testfilePath , ? string & $ error ) : bool { if ( $ testfilePath !== null ) { $ error = 'Extra testfile parameter "' . $ value . '".' ; return false ; } try { $ testfilePath = FilePath :: parse ( $ value ) ; } catch ( FilePathInvalidArgumentException $ exception ) { $ error = 'Invalid path to testfile "' . $ value . '": ' . $ exception -> getMessage ( ) ; return false ; } return true ; }
Parses the testfile command line parameter.
Parses the testfile command line parameter .