PHP 클래스 test\Monad\MaybeTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: widmogrod/php-functional

공개 메소드들

메소드 설명
provideApplicativeTestData ( )
provideData ( )
provideFunctorTestData ( )
test_if_maybe_monad_obeys_the_laws ( $return, $f, $g, $x )
test_it_should_obey_applicative_laws ( $pure, Widmogrod\FantasyLand\Applicative $u, Widmogrod\FantasyLand\Applicative $v, Widmogrod\FantasyLand\Applicative $w, callable $f, $x )
test_it_should_obey_functor_laws ( callable $f, callable $g, Widmogrod\FantasyLand\Functor $x )

메소드 상세

provideApplicativeTestData() 공개 메소드

provideData() 공개 메소드

public provideData ( )

provideFunctorTestData() 공개 메소드

test_if_maybe_monad_obeys_the_laws() 공개 메소드

public test_if_maybe_monad_obeys_the_laws ( $return, $f, $g, $x )

test_it_should_obey_applicative_laws() 공개 메소드

public test_it_should_obey_applicative_laws ( $pure, Widmogrod\FantasyLand\Applicative $u, Widmogrod\FantasyLand\Applicative $v, Widmogrod\FantasyLand\Applicative $w, callable $f, $x )
$u Widmogrod\FantasyLand\Applicative
$v Widmogrod\FantasyLand\Applicative
$w Widmogrod\FantasyLand\Applicative
$f callable

test_it_should_obey_functor_laws() 공개 메소드

public test_it_should_obey_functor_laws ( callable $f, callable $g, Widmogrod\FantasyLand\Functor $x )
$f callable
$g callable
$x Widmogrod\FantasyLand\Functor