/**
  * @SuppressWarnings(PHPMD.UnusedLocalVariable)
  */
 protected function setUp()
 {
     $this->formatter = $this->getMockBuilder('Oro\\Bundle\\LocaleBundle\\Formatter\\DateTimeFormatter')->disableOriginalConstructor()->setMethods(array('getPattern'))->getMock();
     $this->formatter->expects($this->any())->method('getPattern')->will($this->returnValueMap($this->localFormatMap));
     $this->translator = $this->getMockBuilder('Symfony\\Bundle\\FrameworkBundle\\Translation\\Translator')->disableOriginalConstructor()->getMock();
     $this->translator->method('trans')->will($this->returnCallback(function ($one, $two, $tree, $locale) {
         if ($locale == self::LOCALE_EN) {
             return 'MMM d';
         }
         if ($locale == self::LOCALE_RU) {
             return 'd.MMM';
         }
         return '';
     }));
     $this->converter = $this->createFormatConverter();
 }