PHP 클래스 kahlan\matcher\ToBeCloseTo

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

공개 프로퍼티들

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

공개 메소드들

메소드 설명
_buildDescription ( mixed $actual, mixed $expected, integer $precision ) Build the description of the runned ::match() call.
description ( ) Returns the description report.
match ( mixed $actual, mixed $expected, integer $precision = 2 ) : boolean Checks that $actual is close enough to $expected.

메소드 상세

_buildDescription() 공개 정적인 메소드

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

description() 공개 정적인 메소드

Returns the description report.
public static description ( )

match() 공개 정적인 메소드

Checks that $actual is close enough to $expected.
public static match ( mixed $actual, mixed $expected, integer $precision = 2 ) : boolean
$actual mixed The actual value.
$expected mixed The expected value.
$precision integer The precision to use.
리턴 boolean

프로퍼티 상세

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

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