PHP 클래스 Give_Unit_Test_Case, Give

Provides Give-specific setup/tear down/assert methods and helper functions.
부터: 1.0
상속: extends WP_UnitTestCase
파일 보기 프로젝트 열기: wordimpress/give 1 사용 예제들

공개 메소드들

메소드 설명
assertIsWPError ( mixed $actual, string $message = '' ) Asserts thing is WP_Error.
assertNotFalse ( $condition, string $message = '' ) : mixed Backport assertNotFalse to PHPUnit 3.6.12 which only runs in PHP 5.2.
assertNotWPError ( mixed $actual, string $message = '' ) Asserts thing is not WP_Error.
filter_output ( $output ) Strip newlines and tabs when using expectedOutputString() as otherwise.
setUp ( ) Setup test case.

메소드 상세

assertIsWPError() 공개 메소드

Asserts thing is WP_Error.
public assertIsWPError ( mixed $actual, string $message = '' )
$actual mixed
$message string

assertNotFalse() 공개 정적인 메소드

Backport assertNotFalse to PHPUnit 3.6.12 which only runs in PHP 5.2.
부터: 1.0
public static assertNotFalse ( $condition, string $message = '' ) : mixed
$condition
$message string
리턴 mixed

assertNotWPError() 공개 메소드

Asserts thing is not WP_Error.
부터: 1.0
public assertNotWPError ( mixed $actual, string $message = '' )
$actual mixed
$message string

filter_output() 공개 메소드

the most template-related tests will fail due to indentation/alignment in. the template not matching the sample strings set in the tests.
부터: 1.0
public filter_output ( $output )

setUp() 공개 메소드

Setup test case.
부터: 1.0
public setUp ( )