diff options
Diffstat (limited to 'ext/standard/tests/time')
| -rw-r--r-- | ext/standard/tests/time/001.phpt | 4 | ||||
| -rw-r--r-- | ext/standard/tests/time/strptime_basic.phpt | 12 | ||||
| -rw-r--r-- | ext/standard/tests/time/strptime_error.phpt | 8 | ||||
| -rw-r--r-- | ext/standard/tests/time/strptime_parts.phpt | 12 |
4 files changed, 18 insertions, 18 deletions
diff --git a/ext/standard/tests/time/001.phpt b/ext/standard/tests/time/001.phpt index 0b76404ccb..b8498850f1 100644 --- a/ext/standard/tests/time/001.phpt +++ b/ext/standard/tests/time/001.phpt @@ -1,8 +1,8 @@ --TEST-- microtime() function --SKIPIF-- -<?php - if (!function_exists('microtime')) die('skip microtime() not available'); +<?php + if (!function_exists('microtime')) die('skip microtime() not available'); ?> --FILE-- <?php diff --git a/ext/standard/tests/time/strptime_basic.phpt b/ext/standard/tests/time/strptime_basic.phpt index 8fbe37cd82..d8456cd3de 100644 --- a/ext/standard/tests/time/strptime_basic.phpt +++ b/ext/standard/tests/time/strptime_basic.phpt @@ -1,10 +1,10 @@ --TEST-- Test strptime() function : basic functionality --SKIPIF-- -<?php - if (!function_exists('strptime')) { - die("skip - strptime() function not available in this build"); - } +<?php + if (!function_exists('strptime')) { + die("skip - strptime() function not available in this build"); + } if(PHP_OS == 'Darwin') die("skip - strptime() behaves differently on Darwin"); ?> @@ -16,13 +16,13 @@ Test strptime() function : basic functionality */ $orig = setlocale(LC_ALL, 'C'); -date_default_timezone_set("GMT"); +date_default_timezone_set("GMT"); echo "*** Testing strptime() : basic functionality ***\n"; $input = "10:00:00 AM July 2 1963"; $tstamp = strtotime($input); - + $str = strftime("%r %B%e %Y %Z", $tstamp); var_dump(strptime($str, '%H:%M:%S %p %B %d %Y')); diff --git a/ext/standard/tests/time/strptime_error.phpt b/ext/standard/tests/time/strptime_error.phpt index ae55028cb2..655204de62 100644 --- a/ext/standard/tests/time/strptime_error.phpt +++ b/ext/standard/tests/time/strptime_error.phpt @@ -1,17 +1,17 @@ --TEST-- Test localtime() function : error conditions --SKIPIF-- -<?php +<?php if (!function_exists('strptime')) { echo "SKIP strptime function not available in build"; -} -?> +} +?> --FILE-- <?php /* Prototype : array strptime ( string $date , string $format ) * Description: Parse a time/date generated with strftime() * Source code: ext/standard/datetime.c - * Alias to functions: + * Alias to functions: */ //Set the default time zone diff --git a/ext/standard/tests/time/strptime_parts.phpt b/ext/standard/tests/time/strptime_parts.phpt index fbe684b863..75609a70e8 100644 --- a/ext/standard/tests/time/strptime_parts.phpt +++ b/ext/standard/tests/time/strptime_parts.phpt @@ -1,10 +1,10 @@ --TEST-- Test strptime() function : basic functionality --SKIPIF-- -<?php - if (!function_exists('strptime')) { - die("skip - strptime() function not available in this build"); - } +<?php + if (!function_exists('strptime')) { + die("skip - strptime() function not available in this build"); + } ?> --FILE-- @@ -15,14 +15,14 @@ Test strptime() function : basic functionality */ $orig = setlocale(LC_ALL, 'C'); -date_default_timezone_set("GMT"); +date_default_timezone_set("GMT"); putenv("TZ=GMT"); echo "*** Testing strptime() : basic functionality ***\n"; $input = "10:01:20 AM July 2 1963"; $tstamp = strtotime($input); - + $str = strftime("%r %B%e %Y %Z", $tstamp); $res = strptime($str, '%H:%M:%S %p %B %d %Y %Z'); var_dump($res["tm_sec"]); |
