Changeset 42343 for trunk/tests/phpunit/tests/formatting/WPBasename.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/WPBasename.php
r41029 r42343 7 7 8 8 function test_wp_basename_unix() { 9 $this->assertEquals('file', 10 wp_basename('/home/test/file')); 9 $this->assertEquals( 10 'file', 11 wp_basename( '/home/test/file' ) 12 ); 11 13 } 12 14 13 15 function test_wp_basename_unix_utf8_support() { 14 $this->assertEquals('žluťoučký kůň.txt', 15 wp_basename('/test/žluťoučký kůň.txt')); 16 $this->assertEquals( 17 'žluťoučký kůň.txt', 18 wp_basename( '/test/žluťoučký kůň.txt' ) 19 ); 16 20 } 17 21 … … 20 24 */ 21 25 function test_wp_basename_windows() { 22 $this->assertEquals('file.txt', 23 wp_basename('C:\Documents and Settings\User\file.txt')); 26 $this->assertEquals( 27 'file.txt', 28 wp_basename( 'C:\Documents and Settings\User\file.txt' ) 29 ); 24 30 } 25 31 … … 28 34 */ 29 35 function test_wp_basename_windows_utf8_support() { 30 $this->assertEquals('щипцы.txt', 31 wp_basename('C:\test\щипцы.txt')); 36 $this->assertEquals( 37 'щипцы.txt', 38 wp_basename( 'C:\test\щипцы.txt' ) 39 ); 32 40 } 33 41
Note: See TracChangeset
for help on using the changeset viewer.