예제 #1
0
파일: Functions.php 프로젝트: nrocy/phpspec
/**
 * Defines a custom matcher
 * 
 * @param string   $matcherName
 * @param \Closure $matcherDefinition
 */
function define($matcherName, $matcherDefinition)
{
    \PHPSpec\Matcher\MatcherRepository::add($matcherName, $matcherDefinition);
}