public function throwsExceptionWhenFormatterDoesNotImplementFormatterInterface()
{
$mockObjectManager = $this->createMock(ObjectManagerInterface::class);
$mockObjectManager->expects($this->once())->method('isRegistered')->with('Acme\\Foobar\\Formatter\\SampleFormatter')->will($this->returnValue(true));
$mockReflectionService = $this->createMock(ReflectionService::class);
$mockReflectionService->expects($this->once())->method('isClassImplementationOf')->with('Acme\\Foobar\\Formatter\\SampleFormatter', I18n\Formatter\FormatterInterface::class)->will($this->returnValue(false));
$formatResolver = new I18n\FormatResolver();
$formatResolver->injectObjectManager($mockObjectManager);
$this->inject($formatResolver, 'reflectionService', $mockReflectionService);
$formatResolver->resolvePlaceholders('{0,Acme\\Foobar\\Formatter\\SampleFormatter}', [123], $this->sampleLocale);
}