PHP 클래스 SimpleShell, simpletest

파일 보기 프로젝트 열기: simpletest/simpletest 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Executes the shell comand and stashes the output.
execute ( string $command ) : integer Actually runs the command.
getOutput ( ) : string Accessor for the last output.
getOutputAsList ( ) : array Accessor for the last output.

메소드 상세

__construct() 공개 메소드

Executes the shell comand and stashes the output.
public __construct ( )

execute() 공개 메소드

Does not trap the error stream output as this need PHP 4.3+.
public execute ( string $command ) : integer
$command string The actual command line to run.
리턴 integer Exit code.

getOutput() 공개 메소드

Accessor for the last output.
public getOutput ( ) : string
리턴 string Output as text.

getOutputAsList() 공개 메소드

Accessor for the last output.
public getOutputAsList ( ) : array
리턴 array Output as array of lines.