public function testSerialMatcherShouldFailIfAnyPartDoesNotMatch() { $matcher = new SerialMatcher(); $matcher->add(new RegexMatcher('[a-zA-Z0-9_]+')); $matcher->add(new RegexMatcher('=')); $matcher->add(new RegexMatcher('[0-9]+')); $this->assertFalse($matcher->matches('key=a20', $value)); }
protected function match($string, &$value) { $result = parent::match($string, $value); return $result; }