From: Brion Vibber Date: Wed, 1 Jun 2011 22:27:24 +0000 (+0000) Subject: Add more super-cookie test cases to HttpTest; things like org & .org aren't being... X-Git-Tag: 1.31.0-rc.0~29791 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=174b7d6a7a036844dcfe195f9190d3d683be38ae;p=lhc%2Fweb%2Fwiklou.git Add more super-cookie test cases to HttpTest; things like org & .org aren't being handled correctly either. Not super high prio but... should probably mark these tests broken if can't be fixed easily yet. --- diff --git a/tests/phpunit/includes/HttpTest.php b/tests/phpunit/includes/HttpTest.php index 4e3364dc92..d54e7f4fa7 100644 --- a/tests/phpunit/includes/HttpTest.php +++ b/tests/phpunit/includes/HttpTest.php @@ -332,6 +332,10 @@ class HttpTest extends MediaWikiTestCase { function cookieDomains() { return array( + array( false, "org"), + array( false, ".org"), + array( true, "wikipedia.org"), + array( true, ".wikipedia.org"), array( false, "co.uk" ), array( false, ".co.uk" ), array( false, "gov.uk" ),