/**
  * Matches if value is not null.
  *
  * @factory
  */
 public static function notNullValue()
 {
     if (!self::$_NOT_INSTANCE) {
         self::$_NOT_INSTANCE = IsNot::not(self::nullValue());
     }
     return self::$_NOT_INSTANCE;
 }
 /**
  * Matches an empty array.
  *
  * @factory
  */
 public static function nonEmptyArray()
 {
     return DescribedAs::describedAs('a non-empty array', self::arrayWithSize(IsNot::not(0)));
 }
Example #3
0
 /**
  * Evaluates to false if ANY of the passed in matchers evaluate to true.
  *
  * @factory ...
  */
 public static function noneOf()
 {
     $args = func_get_args();
     return IsNot::not(new self(Util::createMatcherArray($args)));
 }
 protected function createMatcher()
 {
     return \Hamcrest\Core\IsNot::not('something');
 }
 /**
  * Matches if value does not match $value.
  */
 function not($value)
 {
     return \Hamcrest\Core\IsNot::not($value);
 }