public function testSyntheticDefinitionCanHaveNoClass()
{
$definition = new Definition();
$definition->setSynthetic(true);
$containerBuilder = new ContainerBuilder();
$validator = new ServiceDefinitionValidator($containerBuilder, $this->createMockDefinitionArgumentsValidator(), $this->createMockMethodCallsValidator());
try {
$validator->validate($definition);
} catch (DefinitionHasNoClassException $e) {
$this->fail('Synthetic definitions should be allowed to have no class');
}
}