示例#1
0
 /**
  * Matches if value is a non-zero-length string.
  *
  * @factory nonEmptyString
  */
 public static function isNonEmptyString()
 {
     if (!self::$_NOT_INSTANCE) {
         self::$_NOT_INSTANCE = new self(false);
     }
     return self::$_NOT_INSTANCE;
 }
 protected function createMatcher()
 {
     return Hamcrest_Text_IsEmptyString::isEmptyOrNullString();
 }
示例#3
0
/**
 * Matches if value is a non-zero-length string.
 */
function nonEmptyString()
{
    require_once 'Hamcrest/Text/IsEmptyString.php';
    return Hamcrest_Text_IsEmptyString::isNonEmptyString();
}