Changeset 48920 for branches/5.5/tests/phpunit/tests/date/mysql2date.php
- Timestamp:
- 08/31/2020 06:53:52 PM (5 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/date/mysql2date.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
-
branches/5.5/tests/phpunit/tests/date/mysql2date.php
r47118 r48920 12 12 13 13 parent::tearDown(); 14 } 15 16 /** 17 * @ticket 28310 18 */ 19 function test_mysql2date_returns_false_with_no_date() { 20 $this->assertFalse( mysql2date( 'F j, Y H:i:s', '' ) ); 21 } 22 23 /** 24 * @ticket 28310 25 */ 26 function test_mysql2date_returns_gmt_or_unix_timestamp() { 27 $this->assertEquals( '441013392', mysql2date( 'G', '1983-12-23 07:43:12' ) ); 28 $this->assertEquals( '441013392', mysql2date( 'U', '1983-12-23 07:43:12' ) ); 14 29 } 15 30
Note: See TracChangeset
for help on using the changeset viewer.