- Timestamp:
- 07/24/2020 06:01:48 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/SanitizeFileName.php
r48596 r48603 22 22 23 23 /** 24 * @ticket 22363 25 */ 26 function test_removes_accents() { 27 $in = 'àáâãäåæçèéêëìíîïñòóôõöøùúûüýÿ'; 28 $out = 'aaaaaaaeceeeeiiiinoooooouuuuyy'; 29 $this->assertEquals( $out, sanitize_file_name( $in ) ); 30 } 31 32 /** 24 33 * Test that spaces are correctly replaced with dashes. 25 34 * 26 35 * @ticket 16330 27 36 */ 28 function test_replace _spaces() {37 function test_replaces_spaces() { 29 38 $urls = array( 30 39 'unencoded space.png' => 'unencoded-space.png', … … 59 68 } 60 69 61 function test_replaces_unnam med_file_extensions() {70 function test_replaces_unnamed_file_extensions() { 62 71 // Test filenames with both supported and unsupported extensions. 63 72 $this->assertEquals( 'unnamed-file.exe', sanitize_file_name( '_.exe' ) ); … … 65 74 } 66 75 67 function test_replaces_unnam med_file_extensionless() {76 function test_replaces_unnamed_file_extensionless() { 68 77 // Test a filenames that becomes extensionless. 69 78 $this->assertEquals( 'no-extension', sanitize_file_name( '_.no-extension' ) );
Note: See TracChangeset
for help on using the changeset viewer.