PHP 클래스 Elgg\CommitMessageGitHookTest

상속: extends TestCase
파일 보기 프로젝트 열기: elgg/elgg

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

메소드 상세

runCmd() 보호된 메소드

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.

setUp() 공개 메소드

public setUp ( )

testAcceptsValidFileInput() 공개 메소드

testAcceptsValidPipeInput() 공개 메소드

testAcceptsValidStringInput() 공개 메소드

testRejectsEmptyFileInput() 공개 메소드

testRejectsEmptyPipeInput() 공개 메소드

testRejectsEmptyStringInput() 공개 메소드

Test failures for missing input

testRejectsInvalidFileInput() 공개 메소드

프로퍼티 상세

$filesDir 보호되어 있는 프로퍼티

protected $filesDir

$scriptsDir 보호되어 있는 프로퍼티

protected $scriptsDir

$validateScript 보호되어 있는 프로퍼티

protected $validateScript