ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Twig_Tests_Extension_IntlTest Class Reference
+ Inheritance diagram for Twig_Tests_Extension_IntlTest:
+ Collaboration diagram for Twig_Tests_Extension_IntlTest:

Public Member Functions

 testLocalizedDateFilterWithDateTimeZone ()
 extension intl PHP 5.5 More...
 

Detailed Description

Definition at line 12 of file IntlTest.php.

Member Function Documentation

◆ testLocalizedDateFilterWithDateTimeZone()

Twig_Tests_Extension_IntlTest::testLocalizedDateFilterWithDateTimeZone ( )

extension intl PHP 5.5

Definition at line 18 of file IntlTest.php.

References $env, and twig_localized_date_filter().

19  {
20  class_exists('Twig_Extensions_Extension_Intl');
21  $env = $this->getMockBuilder('Twig_Environment')->disableOriginalConstructor()->getMock();
22  $date = twig_localized_date_filter($env, new DateTime('2015-01-01T00:00:00', new DateTimeZone('UTC')), 'short', 'long', 'en', '+01:00');
23  $this->assertEquals('1/1/15 1:00:00 AM GMT+01:00', $date);
24  }
$env
twig_localized_date_filter(Twig_Environment $env, $date, $dateFormat='medium', $timeFormat='medium', $locale=null, $timezone=null, $format=null, $calendar='gregorian')
Definition: Intl.php:42
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: