test {{SERVERNAME}} with relative URLS
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 24 Oct 2011 09:32:33 +0000 (09:32 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 24 Oct 2011 09:32:33 +0000 (09:32 +0000)
commitae87825ed967a5cb4fff653196572141f831d221
treed9f852763d92ed8d9f38961aa0112362ce5d4eb9
parentc1f23144e1919ea86b90de2b30428f94c36e7503
test {{SERVERNAME}} with relative URLS

bug 31176 mentionned an issue with {{SERVERNAME}} returning the full
URL instead of servername when using relative URLs (//localhost).
The fix was made by r98193.

This patch test three different URL protocols (http, https & relative)
and check we return the expected 'localhost'.
tests/phpunit/includes/parser/MagicVariableTest.php