classInvalidCommandLineException
final class InvalidCommandLineException
extends RuntimeException
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
The command was given arguments it cannot act on.
Methods§
public function __construct(string $reason)Parameters
$reason | string | What is wrong with the arguments |
Calls 1
- static-call
RuntimeException::__construct()line 21
Test cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 6
CatalogCommandTest::testExecuteRefusesToRunWithoutAPathcallsCommandLineParserTest::testKindsRefusesAnUnknownNamecallsCommandLineParserTest::testParseRefusesAnOptionWithoutItsValuecallsCommandLineParserTest::testParseRefusesAnUnknownOptioncallsCommandLineParserTest::testParseRejectsAnUnknownDialectcallsCommandLineParserTest::testSeverityRefusesAnUnknownNamecalls
Relations§
Instantiated in 6
- new SqlCatalog\Cli\CatalogCommand::execute() packages/sql-catalog/src/Cli/CatalogCommand.php:81
- new SqlCatalog\Cli\CommandLineParser::readOption() packages/sql-catalog/src/Cli/CommandLineParser.php:117
- new SqlCatalog\Cli\CommandLineParser::readOption() packages/sql-catalog/src/Cli/CommandLineParser.php:122
- new SqlCatalog\Cli\CommandLineParser::build() packages/sql-catalog/src/Cli/CommandLineParser.php:144
- new SqlCatalog\Cli\CommandLineParser::kinds() packages/sql-catalog/src/Cli/CommandLineParser.php:197
- new SqlCatalog\Cli\CommandLineParser::severity() packages/sql-catalog/src/Cli/CommandLineParser.php:223