PHP 클래스 kahlan\matcher\ToMatchEcho

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

공개 메소드들

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

메소드 상세

_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.

match() 공개 정적인 메소드

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