PHP 클래스 kahlan\matcher\ToHaveLength

파일 보기 프로젝트 열기: crysalead/kahlan 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_description array Description reference of the last ::match() call.

공개 메소드들

메소드 설명
_buildDescription ( mixed $actual, mixed $length, mixed $expected ) Build the description of the runned ::match() call.
actual ( mixed $actual ) : mixed Normalize the actual value in the expected format.
description ( ) Returns the description report.
match ( mixed $actual, mixed $expected ) : boolean Checks that $actual has the $expected length.

메소드 상세

_buildDescription() 공개 정적인 메소드

Build the description of the runned ::match() call.
public static _buildDescription ( mixed $actual, mixed $length, mixed $expected )
$actual mixed The actual value.
$length mixed The actual length value value.
$expected mixed The expected length value.

actual() 공개 정적인 메소드

Normalize the actual value in the expected format.
public static actual ( mixed $actual ) : mixed
$actual mixed The actual value to be normalized.
리턴 mixed The normalized value.

description() 공개 정적인 메소드

Returns the description report.
public static description ( )

match() 공개 정적인 메소드

Checks that $actual has the $expected length.
public static match ( mixed $actual, mixed $expected ) : boolean
$actual mixed The actual value.
$expected mixed The expected value.
리턴 boolean

프로퍼티 상세

$_description 공개적으로 정적으로 프로퍼티

Description reference of the last ::match() call.
public static array $_description
리턴 array