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; }
/** * Evaluates to false if ANY of the passed in matchers evaluate to true. * * @factory ... */ public static function noneOf() { $args = func_get_args(); return Hamcrest_Core_IsNot::not(new self(Hamcrest_Util::createMatcherArray($args))); }
/** * Evaluates to true only if each $matcher[$i] is satisfied by $array[$i]. * * @factory ... */ public static function anArray() { $args = func_get_args(); return new self(Hamcrest_Util::createMatcherArray($args)); }
/** * An array with elements that match the given matchers. * * @factory containsInAnyOrder ... */ public static function arrayContainingInAnyOrder() { $args = func_get_args(); return new self(Hamcrest_Util::createMatcherArray($args)); }