* * 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:----sOaIdD/hkHXCQ1iyo9rCpxiivbnEByZIN6nuVKwbdKtcOA3dyhiutDbkcQM1P0L/kUlHCO63CEuaW+kvVQ9UVLicMEMTSyFUBY+AWu0pL52rzeFFzmVNV+rlYBlykZKver7dZz/t2pajy5fyqXI+looMzTczHrBQOPQPlcJppq5vtZGIoQi7PE2ffJEnPju3iGj587SnsDS6K/FuSMEf3ELFc3I+kylQw7dOwzQPAKnkcOx4kViuJT2VF7d7/Mfwuto8hUAWFtzcbHkr71bpr70vM6BeB1E8HhsAcGVxV7BCRqKebEOINpfnEoIzhPY1X5jhnfSLDBkow458EeiDUVufSTeoy2kMMiW/GgEhGP3YkGY8RGNa0DiYb6UOUBeVYwhjTW7fu0fuUMxUbYxqfXV/fkCIgA9eq+j9OSchSzdzHcUADbSaAlkCSc4hzwfmXz5srPObmAPbXO8kJh2iU4+kYxeVmemeW4L8n77Gw5oKpX9f4tW7XCF1bnwnNIokrz1XeGOoeZZ7jtQgyTmXG8ZdTWAQFmeUA7xcqawwGhapMJQlKW/yMuOPXR5Cg9BkMmSqiEU2I0oFobaH+TDG0+Y1FCyHxZnCpzODTXuZndzf1NwP/hsOM3detXfk6MJ9EOuwwK/hRQ3YU3p9Ok4Qjmu1seYSrael4oDabiZnod8=----ATTACHMENT:----MjQ0MTQyMDI0NzUyMzAwMCA3MzMyNTI2ODE3MzM2ODIzIDEyODI5ODQwMTg2NTY4MDE=