PHP 클래스 VersionPress\Tests\Utils\MergeDriverTestUtils

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

공개 메소드들

메소드 설명
commit ( $message = 'Default commit message' )
createIniFileAndCommit ( $originDate, $fileName, $message, $content = 'Default content', $title = 'Default title' )
createIniFileWithoutDateFields ( $fileName, $content = 'Default content', $title = 'Default title' )
createIniFileWithoutDateFieldsAndCommit ( $fileName, $message, $content = 'Default content', $title = 'Default title' )
destroyRepository ( )
initRepository ( $repositoryDir )
runGitCommand ( string $cmd ) : integer Runs Git command in the test repo and returns the exit code.
writeIniFile ( $fileName, $date, $content = 'Default content', $title = 'Default title' )

메소드 상세

commit() 공개 정적인 메소드

public static commit ( $message = 'Default commit message' )

createIniFileAndCommit() 공개 정적인 메소드

public static createIniFileAndCommit ( $originDate, $fileName, $message, $content = 'Default content', $title = 'Default title' )

createIniFileWithoutDateFields() 공개 정적인 메소드

public static createIniFileWithoutDateFields ( $fileName, $content = 'Default content', $title = 'Default title' )

createIniFileWithoutDateFieldsAndCommit() 공개 정적인 메소드

public static createIniFileWithoutDateFieldsAndCommit ( $fileName, $message, $content = 'Default content', $title = 'Default title' )

destroyRepository() 공개 정적인 메소드

public static destroyRepository ( )

initRepository() 공개 정적인 메소드

public static initRepository ( $repositoryDir )

runGitCommand() 공개 정적인 메소드

Runs Git command in the test repo and returns the exit code.
public static runGitCommand ( string $cmd ) : integer
$cmd string
리턴 integer Exit code

writeIniFile() 공개 정적인 메소드

public static writeIniFile ( $fileName, $date, $content = 'Default content', $title = 'Default title' )