PHP Class HamcrestTypeBridge

Afficher le fichier Open project: hafriedlander/phockito Class Usage Examples

Méthodes publiques

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

Method Details

argOfTypeThat() public static méthode

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
Résultat Object A special mock of type $type that wraps $matcher, circumventing type issues.