"/presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsBL/asdf?asdf=1&foo=&", "SCRIPT_NAME" => "/presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsBL.php", ); $expected = "/presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsBL"; $received = KTUtil::getRequestScriptName($server); if ($expected !== $received) { print "FAILED!\n"; print "Expected: $expected\n"; print "Received: $received\n"; }