/**
  * @dataProvider dateViewHelperFormatsDateLocalizedDataProvider
  *
  * @test
  */
 public function dateViewHelperFormatsDateLocalized($locale, $expected)
 {
     $format = '%d. %B %Y';
     // 2013-02-03 11:40 UTC
     $timestamp = '@1359891658';
     if (!setlocale(LC_COLLATE, $locale)) {
         $this->markTestSkipped('Locale ' . $locale . ' is not available.');
     }
     $this->setCustomLocale($locale);
     $this->assertEquals($expected, $this->subject->render($timestamp, $format));
 }
 /**
  * @test
  * @expectedException \TYPO3\CMS\Fluid\Core\ViewHelper\Exception
  */
 public function viewHelperThrowsExceptionIfDateStringCantBeParsed()
 {
     $viewHelper = new DateViewHelper();
     $viewHelper->render('foo');
 }