Exemplo n.º 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;
 }
Exemplo n.º 2
0
 protected function createMatcher()
 {
     return Hamcrest_Text_IsEmptyString::isEmptyOrNullString();
 }
Exemplo n.º 3
0
/**
 * Matches if value is a non-zero-length string.
 */
function nonEmptyString()
{
    require_once 'Hamcrest/Text/IsEmptyString.php';
    return Hamcrest_Text_IsEmptyString::isNonEmptyString();
}