PHP 클래스 kahlan\matcher\ToEcho

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

공개 프로퍼티들

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

공개 메소드들

메소드 설명
_buildDescription ( string $actual, string $expected ) Build the description of the runned ::match() call.
actual ( Closure $actual ) : string Returns the output generated by the closure.
description ( ) Returns the description report.
match ( Closure $actual, mixed $expected = null ) : boolean Checks that $actual echo the $expected string.

메소드 상세

_buildDescription() 공개 정적인 메소드

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

actual() 공개 정적인 메소드

Returns the output generated by the closure.
public static actual ( Closure $actual ) : string
$actual Closure The actual closure.
리턴 string The string result.

description() 공개 정적인 메소드

Returns the description report.
public static description ( )

match() 공개 정적인 메소드

Checks that $actual echo the $expected string.
public static match ( Closure $actual, mixed $expected = null ) : boolean
$actual Closure The closure to run.
$expected mixed The expected string.
리턴 boolean

프로퍼티 상세

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

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