You are here

public function RegexTest::testGetHtmlPattern in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

Constraints

Code

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());
}