You are here

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

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