Changeset 188 in tests for wp-testcase/test_includes_functions.php
- Timestamp:
- 03/27/2008 09:15:44 PM (18 years ago)
- File:
-
- 1 edited
-
wp-testcase/test_includes_functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_includes_functions.php
r176 r188 162 162 // incomplete coverage; attempts to cover the most common cases 163 163 str_replace('-', '%', $testimg), // test%image.png 164 'test' . str_replace('e', 'é', $testimg), // tést-imagé.png 165 '12%af34567890~!@#$..%^&*()_+qwerty uiopasd fghjkl zxcvbnm<>?:"{}".png' // kitchen sink 164 165 // FIXME: this doesn't work on many systems because strtolower() mangles it 166 //'test' . str_replace('e', 'é', $testimg), // tést-imagé.png 167 168 '12%af34567890~!@#$..%^&*()_+qwerty uiopasd fghjkl zxcvbnm<>?:"{}".png', // kitchen sink 169 $testdir.'test-image-with-path.png', 166 170 ); 167 171 … … 197 201 198 202 'testimage.png', 199 'testtest-image.png', 200 '12%af34567890_qwerty-uiopasd-fghjkl-zxcvbnm.png' 203 204 // FIXME 205 //'testtest-image.png', 206 207 '12%af34567890_qwerty-uiopasd-fghjkl-zxcvbnm.png', 208 'test-image-with-path.png', 201 209 ); 202 210 … … 210 218 // -- TEST 1: the replacement is as expected 211 219 212 $this->assertEquals( $expected[$key], wp_unique_filename($testdir, $case, NULL) );220 $this->assertEquals( $expected[$key], wp_unique_filename($testdir, $case, NULL), $case ); 213 221 214 222 // -- end TEST 1
Note: See TracChangeset
for help on using the changeset viewer.