Property | Type | Description | |
---|---|---|---|
$command | command being executed. | ||
$exitCode | shell command execution exit code | ||
$outputLines | shell command output lines. |
Method | Description | |
---|---|---|
__toString ( ) : string | PHP magic method that returns the string representation of this object. | |
getOutput ( string $glue = " " ) : string | ||
isOk ( ) : boolean | ||
isOutputContains ( string $string ) : boolean | Checks if output contains given string | |
isOutputEmpty ( ) : boolean | ||
isOutputMatches ( string $pattern ) : boolean | Checks if output matches give regular expression. | |
toString ( ) : string |
public __toString ( ) : string | ||
return | string | the string representation of this object. |
public isOutputContains ( string $string ) : boolean | ||
$string | string | needle string. |
return | boolean | whether output contains given string. |
public isOutputEmpty ( ) : boolean | ||
return | boolean | whether command execution produced empty output. |
public isOutputMatches ( string $pattern ) : boolean | ||
$pattern | string | regular expression |
return | boolean | whether output matches given regular expression. |