You are here

public function RegexTest::testConstraintGetDefaultOption in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Constraints/RegexTest.php \Constraints\RegexTest::testConstraintGetDefaultOption()

File

vendor/symfony/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);
}