Метод |
Описание |
|
__construct ( array $arguments, string $stream ) |
The constructor stores the arguments to be parsed, and creates instances
of both ConsoleFormatter and ConsoleOptionParser. Also, if either a test
or spec directory exists, they are set as the default paths to traverse. |
|
getExitStatus ( ) : mixed |
Returns the error status that should be used to exit after parsing,
otherwise it returns null. |
|
getPaths ( ) : array |
Returns an array of strings corresponding to file and directory paths
to be traversed. |
|
getReporterClass ( ) : string |
Returns the namespaced name of the reporter class requested via the
command line arguments, defaulting to DotReporter if not specified. |
|
parseArguments ( ) |
Parses the arguments originally supplied via the constructor, assigning
their values to the option keys in the $options array. If the arguments
included the help or version option, the corresponding text is printed. |
|
setExitStatus ( integer $exitStatus ) |
Sets the error code to be returned. |
|
write ( string $string ) |
Outputs a single line, replacing all occurrences of the newline character
in the string with PHP_EOL for cross-platform support. |
|
writeLn ( string $string ) |
Outputs a line, followed by a newline, while replacing all occurrences of
'\n' in the string with PHP_EOL for cross-platform support. |
|