You are here

public function ClassMetadataTest::testGroupSequenceFailsIfGroupSequenceProviderIsSet in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Mapping/ClassMetadataTest.php \Symfony\Component\Validator\Tests\Mapping\ClassMetadataTest::testGroupSequenceFailsIfGroupSequenceProviderIsSet()

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

File

vendor/symfony/validator/Tests/Mapping/ClassMetadataTest.php, line 240

Class

ClassMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

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