예제 #1
0
 private function callAndAssertCreateMatcherArray($items)
 {
     $matchers = \Hamcrest\Util::createMatcherArray($items);
     $this->assertInternalType('array', $matchers);
     $this->assertSameSize($items, $matchers);
     foreach ($matchers as $matcher) {
         $this->assertInstanceOf('\\Hamcrest\\Matcher', $matcher);
     }
     return $matchers;
 }
 /**
  * An array with elements that match the given matchers in the same order.
  *
  * @factory contains ...
  */
 public static function arrayContaining()
 {
     $args = func_get_args();
     return new self(Util::createMatcherArray($args));
 }
예제 #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)));
 }