PHP Class HamcrestTypeBridge

显示文件 Open project: hafriedlander/phockito Class Usage Examples

Public Methods

Method Description
argOfTypeThat ( string $type, Hamcrest_Matcher $matcher ) : Object Creates a special mock of $type which wraps the given $matcher.

Method Details

argOfTypeThat() public static method

Creates a special mock of $type which wraps the given $matcher.
public static argOfTypeThat ( string $type, Hamcrest_Matcher $matcher ) : Object
$type string Name of the class to subtype
$matcher Hamcrest_Matcher The matcher to proxy
return Object A special mock of type $type that wraps $matcher, circumventing type issues.