You are here

public function ClassMetadataTest::testGroupSequenceProviderFailsIfGroupSequenceIsSet in Plug 7

@expectedException \Symfony\Component\Validator\Exception\GroupDefinitionException

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Mapping/ClassMetadataTest.php, line 250

Class

ClassMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

public function testGroupSequenceProviderFailsIfGroupSequenceIsSet() {
  $metadata = new ClassMetadata(self::PROVIDERCLASS);
  $metadata
    ->setGroupSequence(array(
    'GroupSequenceProviderEntity',
    'Foo',
  ));
  $metadata
    ->setGroupSequenceProvider(true);
}