Changeset 43434 for trunk/tests/phpunit/tests/date/dateI18n.php
- Timestamp:
- 07/05/2018 11:10:01 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/dateI18n.php
r43389 r43434 84 84 $this->assertEquals( $datetime->format( $timezone_formats ), date_i18n( $timezone_formats ) ); 85 85 } 86 87 /** 88 * @dataProvider data_formats 89 * @ticket 20973 90 */ 91 public function test_date_i18n_handles_shorthand_formats( $short, $full ) { 92 $this->assertEquals( date_i18n( $full ), date_i18n( $short ) ); 93 $this->assertEquals( $short, date_i18n( '\\' . $short ) ); 94 } 95 96 public function data_formats() { 97 return array( 98 array( 99 'c', 100 'Y-m-d\TH:i:sP', 101 ), 102 array( 103 'r', 104 'D, d M Y H:i:s O', 105 ), 106 ); 107 } 86 108 }
Note: See TracChangeset
for help on using the changeset viewer.