wharmby         Tue Jan 13 23:08:04 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/date/tests     date_sunrise_and_sunset_basic.phpt 
                                date_default_timezone_get_error.phpt 
                                date_sun_info_variation1.phpt 
                                date_sun_info_variation2.phpt 
                                date_sun_info_error.phpt 
                                date_sun_info_variation3.phpt 
                                date_default_timezone_set_error.phpt 
  Log:
  Fix new date tests. Tested on Windows, Linux and Linux 64 bit 
  
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/date_sunrise_and_sunset_basic.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/date/tests/date_sunrise_and_sunset_basic.phpt
diff -u php-src/ext/date/tests/date_sunrise_and_sunset_basic.phpt:1.1.2.2 
php-src/ext/date/tests/date_sunrise_and_sunset_basic.phpt:1.1.2.3
--- php-src/ext/date/tests/date_sunrise_and_sunset_basic.phpt:1.1.2.2   Tue Jan 
13 13:38:19 2009
+++ php-src/ext/date/tests/date_sunrise_and_sunset_basic.phpt   Tue Jan 13 
23:08:03 2009
@@ -12,8 +12,8 @@
 
 echo "Basic test for date_sunrise() and date_sunset()\n";
 
-// supress date() function warning msgs 
-error_reporting(E_ALL & ~E_WARNING);
+// supress date() function strict msgs 
+error_reporting(E_ALL & ~E_STRICT);
 
 echo date("D M d Y") . ', sunrise time : ' . date_sunrise(time(), 
SUNFUNCS_RET_STRING, 38.4, -9, 90, 1) . "\n";
 echo date("D M d Y") . ', sunset time : ' . date_sunset(time(), 
SUNFUNCS_RET_STRING, 38.4, -9, 90, 1) . "\n";
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/date_default_timezone_get_error.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/date/tests/date_default_timezone_get_error.phpt
diff -u php-src/ext/date/tests/date_default_timezone_get_error.phpt:1.1.2.2 
php-src/ext/date/tests/date_default_timezone_get_error.phpt:1.1.2.3
--- php-src/ext/date/tests/date_default_timezone_get_error.phpt:1.1.2.2 Tue Jan 
13 13:38:19 2009
+++ php-src/ext/date/tests/date_default_timezone_get_error.phpt Tue Jan 13 
23:08:03 2009
@@ -1,13 +1,13 @@
 --TEST--
 Test date_default_timezone_get() function : error conditions
---INI--
-date.timezone=UTC
 --FILE--
 <?php
 /* Prototype  : string date_default_timezone_get ( void )
  * Description:  Gets the default timezone used by all date/time functions in 
a script.
  * Source code: ext/standard/data/php_date.c
  */
+ 
+date_default_timezone_set("UTC");
 
 echo "*** Testing date_default_timezone_get() : error conditions ***\n";
 
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/date_sun_info_variation1.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/date/tests/date_sun_info_variation1.phpt
diff -u php-src/ext/date/tests/date_sun_info_variation1.phpt:1.1.2.2 
php-src/ext/date/tests/date_sun_info_variation1.phpt:1.1.2.3
--- php-src/ext/date/tests/date_sun_info_variation1.phpt:1.1.2.2        Tue Jan 
13 13:38:19 2009
+++ php-src/ext/date/tests/date_sun_info_variation1.phpt        Tue Jan 13 
23:08:03 2009
@@ -1,13 +1,13 @@
 --TEST--
 Test date_sun_info() function : error variations - Pass unexpected values for 
time argument
---INI--
-date.timezone=UTC
 --FILE--
 <?php
 /* Prototype  : array date_sun_info ( int $time , float $latitude , float 
$longitude )
  * Description:  Returns an array with information about sunset/sunrise and 
twilight begin/end.
  * Source code: ext/standard/data/php_date.c
  */
+ 
+date_default_timezone_set("UTC");
 
 echo "*** Testing date_sun_info() : usage variations ***\n";
 
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/date_sun_info_variation2.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/date/tests/date_sun_info_variation2.phpt
diff -u php-src/ext/date/tests/date_sun_info_variation2.phpt:1.1.2.2 
php-src/ext/date/tests/date_sun_info_variation2.phpt:1.1.2.3
--- php-src/ext/date/tests/date_sun_info_variation2.phpt:1.1.2.2        Tue Jan 
13 13:38:19 2009
+++ php-src/ext/date/tests/date_sun_info_variation2.phpt        Tue Jan 13 
23:08:03 2009
@@ -1,13 +1,14 @@
 --TEST--
 Test date_sun_info() function : error variations - PAss unexepcted valuesfor 
latitude argument
---INI--
-date.timezone=UTC
 --FILE--
 <?php
 /* Prototype  : array date_sun_info ( int $time , float $latitude , float 
$longitude )
  * Description:  Returns an array with information about sunset/sunrise and 
twilight begin/end.
  * Source code: ext/standard/data/php_date.c
  */
+ 
+// supress date() function strict msgs 
+error_reporting(E_ALL & ~E_STRICT);
 
 echo "*** Testing date_sun_info() : usage variations ***\n";
 
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/date_sun_info_error.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/date/tests/date_sun_info_error.phpt
diff -u php-src/ext/date/tests/date_sun_info_error.phpt:1.1.2.2 
php-src/ext/date/tests/date_sun_info_error.phpt:1.1.2.3
--- php-src/ext/date/tests/date_sun_info_error.phpt:1.1.2.2     Tue Jan 13 
13:38:19 2009
+++ php-src/ext/date/tests/date_sun_info_error.phpt     Tue Jan 13 23:08:03 2009
@@ -1,7 +1,5 @@
 --TEST--
 Test date_sun_info() function : error variations
---INI--
-date.timezone=UTC
 --FILE--
 <?php
 /* Prototype  : array date_sun_info ( int $time , float $latitude , float 
$longitude   )
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/date_sun_info_variation3.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/date/tests/date_sun_info_variation3.phpt
diff -u php-src/ext/date/tests/date_sun_info_variation3.phpt:1.1.2.2 
php-src/ext/date/tests/date_sun_info_variation3.phpt:1.1.2.3
--- php-src/ext/date/tests/date_sun_info_variation3.phpt:1.1.2.2        Tue Jan 
13 13:38:19 2009
+++ php-src/ext/date/tests/date_sun_info_variation3.phpt        Tue Jan 13 
23:08:03 2009
@@ -1,13 +1,14 @@
 --TEST--
 Test date_sun_info() function : usage variations - Pass unexpected values for 
longitude argument
---INI--
-date.timezone=UTC
 --FILE--
 <?php
 /* Prototype  : array date_sun_info ( int $time , float $latitude , float 
$longitude )
  * Description:  Returns an array with information about sunset/sunrise and 
twilight begin/end.
  * Source code: ext/standard/data/php_date.c
  */
+ 
+// supress date() function strict msgs 
+error_reporting(E_ALL & ~E_STRICT);
 
 echo "*** Testing date_sun_info() : usage variations ***\n";
 
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/date_default_timezone_set_error.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/date/tests/date_default_timezone_set_error.phpt
diff -u php-src/ext/date/tests/date_default_timezone_set_error.phpt:1.1.2.2 
php-src/ext/date/tests/date_default_timezone_set_error.phpt:1.1.2.3
--- php-src/ext/date/tests/date_default_timezone_set_error.phpt:1.1.2.2 Tue Jan 
13 13:38:19 2009
+++ php-src/ext/date/tests/date_default_timezone_set_error.phpt Tue Jan 13 
23:08:03 2009
@@ -1,7 +1,5 @@
 --TEST--
 Test date_default_timezone_set() function : error variations
---INI--
-date.timezone=UTC
 --FILE--
 <?php
 /* Prototype  : bool date_default_timezone_set ( string $timezone_identifier )



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to