/** * Matches if value is null or a zero-length string. * * @factory nullOrEmptyString */ public static function isEmptyOrNullString() { if (!self::$_NULL_OR_EMPTY_INSTANCE) { self::$_NULL_OR_EMPTY_INSTANCE = Hamcrest_Core_AnyOf::anyOf(Hamcrest_Core_IsNull::nullvalue(), self::isEmptyString()); } return self::$_NULL_OR_EMPTY_INSTANCE; }
protected function createMatcher() { return Hamcrest_Core_AnyOf::anyOf('irrelevant'); }