- Timestamp:
- 06/21/2016 03:01:26 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7/tests/phpunit/tests/formatting/SanitizeFileName.php
r25002 r37825 32 32 $this->assertEquals("a-t", sanitize_file_name("a \n\n\nt")); 33 33 } 34 35 function test_replaces_unnammed_file_extensions() { 36 // Test filenames with both supported and unsupported extensions. 37 $this->assertEquals( 'unnamed-file.exe', sanitize_file_name( '_.exe' ) ); 38 $this->assertEquals( 'unnamed-file.jpg', sanitize_file_name( '_.jpg' ) ); 39 } 40 41 function test_replaces_unnammed_file_extensionless() { 42 // Test a filenames that becomes extensionless. 43 $this->assertEquals( 'no-extension', sanitize_file_name( '_.no-extension' ) ); 44 } 34 45 }
Note: See TracChangeset
for help on using the changeset viewer.