You are here

public function RegexTest::testConstraintGetDefaultOption in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/RegexTest.php, line 21

Class

RegexTest
@author Bernhard Schussek <bschussek@gmail.com>

Namespace

Constraints

Code

public function testConstraintGetDefaultOption() {
  $constraint = new Regex('/^[0-9]+$/');
  $this
    ->assertSame('/^[0-9]+$/', $constraint->pattern);
}