You are here

public function LegacyExecutionContextTest::testInit in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/LegacyExecutionContextTest.php, line 75

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