PHP Class PHPUnit_Extensions_Assert_More

Afficher le fichier Open project: etsy/phpunit-extensions Class Usage Examples

Méthodes publiques

Méthode Description
assertArrayEqualsNoOrder ( array $expected, array $actual, string $message = '' ) Asserts that the two arrays contain the same exact contents, but are not necessarily the same order.
assertArrayHasKeyValuePair ( string | integer $expectedKey, mixed $expectedValue, array $actual, $message = '' ) Asserts that the actual array contains a specified key/value pair.
assertHasItems ( array $expected, array $actual, $message = '' ) Asserts that the actual array contains at least one occurence of each of the values in the expected array.
assertStringMatchIgnoreWhitespace ( array $expected, array $actual, string $message = '' ) Asserts that the two strings match but that all whitespaces are not necessarily equal.

Private Methods

Méthode Description
__construct ( )

Method Details

assertArrayEqualsNoOrder() public static méthode

Asserts that the two arrays contain the same exact contents, but are not necessarily the same order.
public static assertArrayEqualsNoOrder ( array $expected, array $actual, string $message = '' )
$expected array
$actual array
$message string

assertArrayHasKeyValuePair() public static méthode

Asserts that the actual array contains a specified key/value pair.
public static assertArrayHasKeyValuePair ( string | integer $expectedKey, mixed $expectedValue, array $actual, $message = '' )
$expectedKey string | integer
$expectedValue mixed
$actual array
$message

assertHasItems() public static méthode

Asserts that the actual array contains at least one occurence of each of the values in the expected array.
public static assertHasItems ( array $expected, array $actual, $message = '' )
$expected array
$actual array
$message

assertStringMatchIgnoreWhitespace() public static méthode

Asserts that the two strings match but that all whitespaces are not necessarily equal.
public static assertStringMatchIgnoreWhitespace ( array $expected, array $actual, string $message = '' )
$expected array
$actual array
$message string