Add more super-cookie test cases to HttpTest; things like org & .org aren't being...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 1 Jun 2011 22:27:24 +0000 (22:27 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 1 Jun 2011 22:27:24 +0000 (22:27 +0000)
tests/phpunit/includes/HttpTest.php

index 4e3364d..d54e7f4 100644 (file)
@@ -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" ),