public function RegexTest::testGetHtmlPattern in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Tests/Constraints/RegexTest.php \Constraints\RegexTest::testGetHtmlPattern()
@dataProvider provideHtmlPatterns
File
- vendor/
symfony/ 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());
}