PHP 클래스 Phrozn\Outputter\TestOutputter

저자: Victor Farazdagi
상속: implements Phrozn\Outputter
파일 보기 프로젝트 열기: farazdagi/phrozn 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $testCase )
assertInLogs ( string $expected, $errorMsg = "Expected to find '%s' in logs: %s" ) : void Asserts that the log buffer contains specified message
assertNotInLogs ( $message, $errorMsg = "Unexpected string '%s' found in logs: %s" ) : void Asserts that the log buffer does NOT contain specified message
getLines ( ) : array Get all outputted lines
resetLogs ( ) : void Cleanup previous logs
stderr ( string $msg, string $status = self::STATUS_FAIL ) : Phrozn\Outputter Writes the message $msg to STDERR.
stdout ( $msg, string $status = self::STATUS_OK ) : Phrozn\Outputter Add line to output

메소드 상세

__construct() 공개 메소드

public __construct ( $testCase )

assertInLogs() 공개 메소드

Asserts that the log buffer contains specified message
public assertInLogs ( string $expected, $errorMsg = "Expected to find '%s' in logs: %s" ) : void
$expected string Message subsctring
리턴 void

assertNotInLogs() 공개 메소드

Asserts that the log buffer does NOT contain specified message
public assertNotInLogs ( $message, $errorMsg = "Unexpected string '%s' found in logs: %s" ) : void
리턴 void

getLines() 공개 메소드

Get all outputted lines
public getLines ( ) : array
리턴 array

resetLogs() 공개 메소드

Cleanup previous logs
public resetLogs ( ) : void
리턴 void

stderr() 공개 메소드

Writes the message $msg to STDERR.
public stderr ( string $msg, string $status = self::STATUS_FAIL ) : Phrozn\Outputter
$msg string The message to output
$status string Output status
리턴 Phrozn\Outputter

stdout() 공개 메소드

Add line to output
public stdout ( $msg, string $status = self::STATUS_OK ) : Phrozn\Outputter
$status string Output status
리턴 Phrozn\Outputter