From: Stanislav Malyshev Date: Wed, 31 Aug 2011 07:34:07 +0000 (+0000) Subject: fix strptime tests for mac X-Git-Tag: php-5.4.0beta1~326 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c268811b018f43625ac86ae1971b131c1dae4572;p=php fix strptime tests for mac --- diff --git a/ext/standard/tests/time/strptime_basic.phpt b/ext/standard/tests/time/strptime_basic.phpt index a3fa435d8c..194a78f82b 100644 --- a/ext/standard/tests/time/strptime_basic.phpt +++ b/ext/standard/tests/time/strptime_basic.phpt @@ -5,6 +5,7 @@ Test strptime() function : basic functionality if (!function_exists('strptime')) { die("skip - strptime() function not available in this build"); } + if(PHP_OS == 'Darwin') die("skip - strptime() behaves differently on Darwin"); ?> --FILE-- diff --git a/ext/standard/tests/time/strptime_parts.phpt b/ext/standard/tests/time/strptime_parts.phpt new file mode 100644 index 0000000000..fbe684b863 --- /dev/null +++ b/ext/standard/tests/time/strptime_parts.phpt @@ -0,0 +1,76 @@ +--TEST-- +Test strptime() function : basic functionality +--SKIPIF-- + + +--FILE-- + +===DONE=== +--EXPECT-- +*** Testing strptime() : basic functionality *** +int(20) +int(1) +int(10) +int(2) +int(6) +int(63) +int(20) +int(1) +int(10) +int(2) +int(6) +int(163) +int(0) +int(1) +int(10) +int(2) +int(6) +int(0) +===DONE===