PHP 클래스 Widmogrod\Helpful\MonoidLaws

파일 보기 프로젝트 열기: widmogrod/php-functional 1 사용 예제들

공개 메소드들

메소드 설명
test ( callable $assertEqual, Widmogrod\FantasyLand\Monoid $x, Widmogrod\FantasyLand\Monoid $y, Widmogrod\FantasyLand\Monoid $z ) Generic test to verify if a type obey the monodic laws.

메소드 상세

test() 공개 정적인 메소드

Generic test to verify if a type obey the monodic laws.
public static test ( callable $assertEqual, Widmogrod\FantasyLand\Monoid $x, Widmogrod\FantasyLand\Monoid $y, Widmogrod\FantasyLand\Monoid $z )
$assertEqual callable Asserting function (Monoid $m1, Monoid $m2, $message)
$x Widmogrod\FantasyLand\Monoid
$y Widmogrod\FantasyLand\Monoid
$z Widmogrod\FantasyLand\Monoid