Свойство | Тип | Описание | |
---|---|---|---|
$filesDir | |||
$scriptsDir | |||
$validateScript |
Метод | Описание | |
---|---|---|
setUp ( ) | ||
testAcceptsValidFileInput ( ) | ||
testAcceptsValidPipeInput ( ) | ||
testAcceptsValidStringInput ( ) | ||
testRejectsEmptyFileInput ( ) | ||
testRejectsEmptyPipeInput ( ) | ||
testRejectsEmptyStringInput ( ) | Test failures for missing input | |
testRejectsInvalidFileInput ( ) |
Метод | Описание | |
---|---|---|
runCmd ( string $cmd, string &$output, array $env = [] ) : boolean | Executes a command and returns true if the cmd exited with 0. |
protected runCmd ( string $cmd, string &$output, array $env = [] ) : boolean | ||
$cmd | string | Shell command to execute |
$output | string | Output from stdout and stderr will be written to this variable |
$env | array | Array of environment variables to be passed to sub-process |
Результат | boolean | Result depending on process exit code. |
public testRejectsEmptyStringInput ( ) |