Пример #1
0
 /**
  * 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 = AnyOf::anyOf(IsNull::nullvalue(), self::isEmptyString());
     }
     return self::$_NULL_OR_EMPTY_INSTANCE;
 }
Пример #2
0
 protected function createMatcher()
 {
     return \Hamcrest\Core\IsNull::nullValue();
 }
 /**
  * Matches if value is not null.
  */
 function notNullValue()
 {
     return \Hamcrest\Core\IsNull::notNullValue();
 }