Changeset 28718 for trunk/tests/phpunit/tests/formatting/WPTexturize.php
- Timestamp:
- 06/10/2014 02:08:05 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/WPTexturize.php
r27839 r28718 188 188 */ 189 189 function test_spaces_around_hyphens() { 190 $nbsp = "\xC2\xA0"; 191 190 192 $this->assertEquals( ' – ', wptexturize( ' - ' ) ); 191 193 $this->assertEquals( ' – ', wptexturize( ' - ' ) ); 192 194 $this->assertEquals( ' – ', wptexturize( ' - ' ) ); 193 195 $this->assertEquals( ' – ', wptexturize( ' - ') ); 196 $this->assertEquals( "$nbsp–$nbsp", wptexturize( "$nbsp-$nbsp" ) ); 197 $this->assertEquals( " –$nbsp", wptexturize( " -$nbsp" ) ); 198 $this->assertEquals( "$nbsp– ", wptexturize( "$nbsp- ") ); 194 199 195 200 $this->assertEquals( ' — ', wptexturize( ' -- ' ) ); … … 197 202 $this->assertEquals( ' — ', wptexturize( ' -- ' ) ); 198 203 $this->assertEquals( ' — ', wptexturize( ' -- ') ); 204 $this->assertEquals( "$nbsp—$nbsp", wptexturize( "$nbsp--$nbsp" ) ); 205 $this->assertEquals( " —$nbsp", wptexturize( " --$nbsp" ) ); 206 $this->assertEquals( "$nbsp— ", wptexturize( "$nbsp-- ") ); 199 207 } 200 208 … … 930 938 array( 931 939 "word xn– word", 932 "word xn --word",940 "word xn– word", 933 941 ), 934 942 array( 935 943 "wordxn–word", 944 "wordxn–word", 945 ), 946 array( 947 "wordxn--word", 936 948 "wordxn--word", 937 949 ),
Note: See TracChangeset
for help on using the changeset viewer.