From: Antoine Musso Date: Thu, 30 Jun 2011 21:14:33 +0000 (+0000) Subject: test that wfUrlencode() encodes apostrophe X-Git-Tag: 1.31.0-rc.0~29138 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=23a14b810a0fe2d6f9ba1767265d5f6e2702d135;p=lhc%2Fweb%2Fwiklou.git test that wfUrlencode() encodes apostrophe --- diff --git a/tests/phpunit/includes/GlobalFunctions/wfUrlencodeTest.php b/tests/phpunit/includes/GlobalFunctions/wfUrlencodeTest.php index 582fd35a4b..97a7844125 100644 --- a/tests/phpunit/includes/GlobalFunctions/wfUrlencodeTest.php +++ b/tests/phpunit/includes/GlobalFunctions/wfUrlencodeTest.php @@ -118,6 +118,9 @@ class wfUrlencodeTest extends MediaWikiTestCase { // Other 'funnies' chars array( '[]', '%5B%5D' ), array( '<>', '%3C%3E' ), + + // Apostrophe is encoded + array( '\'', '%27' ), ); } }