You are here

public function ClassMetadataTest::testGroupSequenceProviderFailsIfDomainClassIsInvalid in Zircon Profile 8

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

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

File

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

Class

ClassMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

public function testGroupSequenceProviderFailsIfDomainClassIsInvalid() {
  $metadata = new ClassMetadata('stdClass');
  $metadata
    ->setGroupSequenceProvider(true);
}