public function testGroupSequencesFailIfContainingDefault() { $this->
expectException(GroupDefinitionException::
class);
$this->metadata->
setGroupSequence(['Foo',
$this->metadata->
getDefaultGroup(), Constraint::DEFAULT_GROUP
]);
} public function testGroupSequenceFailsIfGroupSequenceProviderIsSet() { $this->
expectException(GroupDefinitionException::
class);
$metadata =
new ClassMetadata(self::PROVIDERCLASS
);
$metadata->
setGroupSequenceProvider(true
);
$metadata->
setGroupSequence(['GroupSequenceProviderEntity', 'Foo'
]);
} public function testGroupSequenceProviderFailsIfGroupSequenceIsSet() { $this->
expectException(GroupDefinitionException::
class);
$metadata =
new ClassMetadata(self::PROVIDERCLASS
);
$metadata->
setGroupSequence(['GroupSequenceProviderEntity', 'Foo'
]);
$metadata->
setGroupSequenceProvider(true
);
}