PHP Class Give_Unit_Test_Case, Give

Provides Give-specific setup/tear down/assert methods and helper functions.
Since: 1.0
Inheritance: extends WP_UnitTestCase
Exibir arquivo Open project: wordimpress/give Class Usage Examples

Public Methods

Method Description
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.

Method Details

assertIsWPError() public method

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

assertNotFalse() public static method

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

assertNotWPError() public method

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

filter_output() public method

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

setUp() public method

Setup test case.
Since: 1.0
public setUp ( )