/**
  * Matches an empty array.
  *
  * @factory
  */
 public static function nonEmptyArray()
 {
     return DescribedAs::describedAs('a non-empty array', self::arrayWithSize(IsNot::not(0)));
 }
Exemplo n.º 2
0
 protected function createMatcher()
 {
     return \Hamcrest\Core\DescribedAs::describedAs('irrelevant', anything());
 }