PHP 클래스 PHPUnit_Extensions_Assert_More

파일 보기 프로젝트 열기: etsy/phpunit-extensions 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
__construct ( )

메소드 상세

assertArrayEqualsNoOrder() 공개 정적인 메소드

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() 공개 정적인 메소드

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() 공개 정적인 메소드

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() 공개 정적인 메소드

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