/** * @dataProvider provideNonMatchingExpressions */ public function testMatchesRegex_nonMatching($regex, $expression) { $regexHelper = new RegexHelper(); $this->assertFalse($regexHelper->matchesRegex($regex, $expression)); }
private function isFunctionAs($expression, $options) { return $options & self::VALIDATE_FUNCTION_AS && $this->regexHelper->matchesRegex('\\(\\{function} AS \\{variable}\\)', $expression); }