public function RegexTest::testGetCustomHtmlPattern in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Constraints/RegexTest.php \Constraints\RegexTest::testGetCustomHtmlPattern()
File
- vendor/
symfony/ validator/ Tests/ Constraints/ RegexTest.php, line 77
Class
- RegexTest
- @author Bernhard Schussek <bschussek@gmail.com>
Namespace
ConstraintsCode
public function testGetCustomHtmlPattern() {
$constraint = new Regex(array(
'pattern' => '((?![0-9]$|[a-z]+).)*',
'htmlPattern' => 'foobar',
));
$this
->assertSame('((?![0-9]$|[a-z]+).)*', $constraint->pattern);
$this
->assertSame('foobar', $constraint
->getHtmlPattern());
}