[mapguide-commits] r5094 - trunk/MgDev/UnitTest/WebTier/Php

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Aug 27 19:04:36 EDT 2010


Author: waltweltonlair
Date: 2010-08-27 23:04:36 +0000 (Fri, 27 Aug 2010)
New Revision: 5094

Modified:
   trunk/MgDev/UnitTest/WebTier/Php/HttpRequest.php
   trunk/MgDev/UnitTest/WebTier/Php/RunTests.php
Log:
Port two web tier unit test fixes from the 2.2 code stream:

RunTests.php:
- Fix timezone warning issue

HttpRequest.php:
- Remove the Curl call that was causing the POST request to be changed into a GET request.
  Note: The Curl documentation says that this shouldn't happen, but the new Curl extension with PHP 5.3 is changing it.


Modified: trunk/MgDev/UnitTest/WebTier/Php/HttpRequest.php
===================================================================
--- trunk/MgDev/UnitTest/WebTier/Php/HttpRequest.php	2010-08-27 22:59:08 UTC (rev 5093)
+++ trunk/MgDev/UnitTest/WebTier/Php/HttpRequest.php	2010-08-27 23:04:36 UTC (rev 5094)
@@ -60,7 +60,6 @@
 
         curl_setopt($this->ch, CURLOPT_URL, $httpRequest);
         curl_setopt($this->ch, CURLOPT_HEADER, true);
-        curl_setopt($this->ch, CURLOPT_NOBODY, false);
         curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true);
         curl_setopt($this->ch, CURLOPT_USERPWD, "Administrator:admin");
 

Modified: trunk/MgDev/UnitTest/WebTier/Php/RunTests.php
===================================================================
--- trunk/MgDev/UnitTest/WebTier/Php/RunTests.php	2010-08-27 22:59:08 UTC (rev 5093)
+++ trunk/MgDev/UnitTest/WebTier/Php/RunTests.php	2010-08-27 23:04:36 UTC (rev 5094)
@@ -31,6 +31,7 @@
     $isEnterprise = false;
     $file = fopen("UnitTests.log", "w");
 
+    date_default_timezone_set("GMT-0");
     $str = sprintf("Run started: %s\n\n",date("D M j G:i:s T Y"));
 
     echo $str;



More information about the mapguide-commits mailing list