public function ExecutionContextTest::testInit

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/ExecutionContextTest.php, line 65

Class

ExecutionContextTest

Namespace

Symfony\Component\Validator\Tests

Code

public function testInit() {
  $this
    ->assertCount(0, $this->context
    ->getViolations());
  $this
    ->assertSame('Root', $this->context
    ->getRoot());
  $this
    ->assertSame('foo.bar', $this->context
    ->getPropertyPath());
  $this
    ->assertSame('Group', $this->context
    ->getGroup());
}