Méthode | Description | |
---|---|---|
argOfTypeThat ( string $type, Hamcrest_Matcher $matcher ) : Object | 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. |