Ticket #20342: 20342-tests.2.diff
File 20342-tests.2.diff, 1.6 KB (added by , 11 years ago) |
---|
-
tests/phpunit/tests/formatting/WPTexturize.php
184 184 * @ticket 23185 185 185 */ 186 186 function test_spaces_around_hyphens() { 187 $this->assertEquals( ' – ', wptexturize( ' - ' ) ); 187 $this->assertEquals( ' – ', wptexturize( ' - ' ) ); 188 188 $this->assertEquals( ' – ', wptexturize( ' - ' ) ); 189 189 $this->assertEquals( ' – ', wptexturize( ' - ' ) ); 190 190 $this->assertEquals( ' – ', wptexturize( ' - ') ); 191 191 192 $this->assertEquals( ' — ', wptexturize( ' -- ' ) ); 192 $this->assertEquals( ' — ', wptexturize( ' -- ' ) ); 193 193 $this->assertEquals( ' — ', wptexturize( ' -- ' ) ); 194 194 $this->assertEquals( ' — ', wptexturize( ' -- ' ) ); 195 195 $this->assertEquals( ' — ', wptexturize( ' -- ') ); 196 196 } 197 198 /** 199 * @ticket 20342 200 */ 201 function test_quotes_after_emdash() { 202 $this->assertEquals( '<p>I also remember the line in “Casey at the Bat” when he struck out—“There is no Joy in Mudville!!!”</p>', wptexturize( '<p>I also remember the line in "Casey at the Bat" when he struck out---"There is no Joy in Mudville!!!"</p>' ) ); 203 $this->assertEquals( 'testing <“Test Quote”>', wptexturize( 'testing <"Test Quote">' ) ); 204 $this->assertEquals( 'Then he said, “Try using the &”', wptexturize( 'Then he said, "Try using the &"' ) ); 205 } 197 206 }