public function test($compare) { return (bool) preg_match($this->getPattern(), $compare); }
/** * Tests the expectation. False if the Perl regex * matches the comparison value. * @param string $compare Comparison value. * @return boolean True if correct. * @access public */ function test($compare) { return !parent::test($compare); }