You are here

public function LegacyExecutionContextTest::testInit in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/LegacyExecutionContextTest.php \Symfony\Component\Validator\Tests\LegacyExecutionContextTest::testInit()

File

vendor/symfony/validator/Tests/LegacyExecutionContextTest.php, line 73

Class

LegacyExecutionContextTest
@group legacy

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