/**
  * Constructor.
  * 
  * @param Hamcrest_Matcher $subMatcher The matcher to apply to the feature
  * @param string $featureDescription Descriptive text to use in describeTo
  * @param string $featureName Identifying text for mismatch message
  */
 public function __construct($type, $subtype, Hamcrest_Matcher $subMatcher, $featureDescription, $featureName)
 {
     parent::__construct($type, $subtype);
     $this->_subMatcher = $subMatcher;
     $this->_featureDescription = $featureDescription;
     $this->_featureName = $featureName;
 }
Example #2
0
 public function __construct(Hamcrest_Matcher $matcher)
 {
     parent::__construct(self::TYPE_ARRAY);
     $this->_matcher = $matcher;
 }
 public function __construct(array $elementMatchers)
 {
     parent::__construct(self::TYPE_ARRAY);
     Hamcrest_Util::checkAllAreMatchers($elementMatchers);
     $this->_elementMatchers = $elementMatchers;
 }