| 182 | |
| 183 | /** |
| 184 | * @ticket 23185 |
| 185 | */ |
| 186 | function test_spaces_around_hyphens() { |
| 187 | |
| 188 | function performTests($tester, $hyphenString, $expectedTranslation) { |
| 189 | $tester->assertEquals( ' ' . $expectedTranslation . ' ', wptexturize( ' ' . $hyphenString . ' ' ) ); |
| 190 | $tester->assertEquals( ' ' . $expectedTranslation . ' ', wptexturize( ' ' . $hyphenString . ' ' ) ); |
| 191 | $tester->assertEquals( ' ' . $expectedTranslation . ' ', wptexturize( ' ' . $hyphenString . ' ' ) ); |
| 192 | $tester->assertEquals( ' ' . $expectedTranslation . ' ', wptexturize( ' ' . $hyphenString . ' ') ); |
| 193 | } |
| 194 | |
| 195 | performTests($this, '-', '–'); |
| 196 | performTests($this, '--', '—'); |
| 197 | } |