* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Intl\Tests\DateFormatter\Verification; use Symfony\Component\Intl\DateFormatter\IntlDateFormatter; use Symfony\Component\Intl\Tests\DateFormatter\AbstractIntlDateFormatterTest; use Symfony\Component\Intl\Util\IntlTestHelper; /** * Verifies that {@link AbstractIntlDateFormatterTest} matches the behavior of * the {@link \IntlDateFormatter} class in a specific version of ICU. * * @author Bernhard Schussek */ class IntlDateFormatterTest extends AbstractIntlDateFormatterTest { protected function setUp() { IntlTestHelper::requireFullIntl($this, false); parent::setUp(); } /** * @dataProvider formatTimezoneProvider */ public function testFormatTimezone($pattern, $timezone, $expected) { IntlTestHelper::requireFullIntl($this, '59.1'); parent::testFormatTimezone($pattern, $timezone, $expected); } public function testFormatUtcAndGmtAreSplit() { IntlTestHelper::requireFullIntl($this, '59.1'); parent::testFormatUtcAndGmtAreSplit(); } /** * @dataProvider dateAndTimeTypeProvider */ public function testDateAndTimeType($timestamp, $datetype, $timetype, $expected) { IntlTestHelper::requireFullIntl($this, '59.1'); parent::testDateAndTimeType($timestamp, $datetype, $timetype, $expected); } protected function getDateFormatter($locale, $datetype, $timetype, $timezone = null, $calendar = IntlDateFormatter::GREGORIAN, $pattern = null) { IntlTestHelper::requireFullIntl($this, '55.1'); if (!$formatter = new \IntlDateFormatter($locale, $datetype, $timetype, $timezone, $calendar, $pattern)) { throw new \InvalidArgumentException(intl_get_error_message()); } return $formatter; } protected function getIntlErrorMessage() { return intl_get_error_message(); } protected function getIntlErrorCode() { return intl_get_error_code(); } protected function isIntlFailure($errorCode) { return intl_is_failure($errorCode); } } __halt_compiler();----SIGNATURE:----Wh0vCaJcJQIgJOnCJr31h7X2JToxUfbaeKgh44LuXxrDQ3TAUB4arsllSfc/YLINH/z5TZD2vOoauysQ9ZgvQX79xG6WuO4BYB2Yk+4MAzPyRPA2YvLab11CMuvb2FsjRBH5WcDPWSqz57Dhw4uKDpXIBEG/X4Ryyp7JJEaSdeEpfYilvdCX2BCzcugmHWVHhoYt/Li7YpYSZKTm/Cc4ci0+9ITaPXliW9IFPlJ0WKOTd6YucZceRWOFN66FGgCN+OtnDOmVAt9jCZsMDqBwn48sT3sxHsUBWL9gMD7DlFMztwOLaLhFsJxVa8p81RllzJiDLkyrYvs2IQdH5GI72QGfao4cTXFFtOMYBVTcMd08Y8sGy1KO6w+RbcauJtKbssEpwwtBLD8lYerrWMARnUClYJ20bG7rLUrMn2dQebFsgRChAkT6KqfG03k/OEKin3a6Q4Diqz9UwJtnLzvnQA4NbxDiJgcqvmltw4P0UsH6+7LYg4wUK4GAduzxSPY8gzNgU1A0wsBVbU77vDCtk9jK5FisRAYmtwfP+keA+2hyRfn7w0a/zezpZQoeftlN6diEJdyEDysg/HZl206UzaNKF2O1Pt90aLd9Xrs5LNl2ZuQzlRfftttU39qqEJ+dpitmX5/c1qBNprRN25wMlt//gqn1EJML1ePYooA1Yhw=----ATTACHMENT:----NzU2ODMyODY2OTkzODY3OSA3MDQyNjAyMDg5NTU2MDY4IDYzMzM0OTUxODQ3MTc2OTU=