public function RegexTest::testGetHtmlPattern in Plug 7
@dataProvider provideHtmlPatterns
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ RegexTest.php, line 66
Class
- RegexTest
- @author Bernhard Schussek <bschussek@gmail.com>
Namespace
ConstraintsCode
public function testGetHtmlPattern($pattern, $htmlPattern, $match = true) {
$constraint = new Regex(array(
'pattern' => $pattern,
'match' => $match,
));
$this
->assertSame($pattern, $constraint->pattern);
$this
->assertSame($htmlPattern, $constraint
->getHtmlPattern());
}