PHP Класс Give_Unit_Test_Case, Give

Provides Give-specific setup/tear down/assert methods and helper functions.
С версии: 1.0
Наследование: extends WP_UnitTestCase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 ( )