public function testDefinedClassCanBeInterface()
{
$validator = new ServiceDefinitionValidator(new ContainerBuilder(), $this->createMockDefinitionArgumentsValidator(), $this->createMockMethodCallsValidator());
try {
// The choice for Serializable is arbitrary, any PHP interface would do
$validator->validate(new Definition('Serializable'));
} catch (ClassNotFoundException $e) {
$this->fail('Definition should be allowed to have an interface as class');
}
}