/** * Matches if value (class, object, or array) has named $property. */ function set($property) { require_once 'Hamcrest/Core/IsSet.php'; return Hamcrest_Core_IsSet::set($property); }
protected function createMatcher() { return Hamcrest_Core_IsSet::set('property_name'); }