wharmby Thu, 27 Aug 2009 19:30:35 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287819
Log:
Fix time_sleep_until() tests; not supported on Windows on 5.2
Changed paths:
U
php/php-src/branches/PHP_5_2/ext/standard/tests/misc/time_sleep_until_basic.phpt
U
php/php-src/branches/PHP_5_2/ext/standard/tests/misc/time_sleep_until_error1.phpt
U
php/php-src/branches/PHP_5_2/ext/standard/tests/misc/time_sleep_until_error3.phpt
U php/php-src/branches/PHP_5_2/tests/func/time_sleep_until_basic.phpt
U php/php-src/branches/PHP_5_2/tests/func/time_sleep_until_error2.phpt
Modified:
php/php-src/branches/PHP_5_2/ext/standard/tests/misc/time_sleep_until_basic.phpt
===================================================================
---
php/php-src/branches/PHP_5_2/ext/standard/tests/misc/time_sleep_until_basic.phpt
2009-08-27 19:01:36 UTC (rev 287818)
+++
php/php-src/branches/PHP_5_2/ext/standard/tests/misc/time_sleep_until_basic.phpt
2009-08-27 19:30:35 UTC (rev 287819)
@@ -1,5 +1,9 @@
--TEST--
time_sleep_until() function - basic test for time_sleep_until()
+--SKIPIF--
+<?php
+ function_exists('time_sleep_until') or die('skip time_sleep_until() is
not supported in this build.');
+?>
--CREDITS--
Manuel Baldassarri [email protected]
Michele Orselli [email protected]
@@ -10,5 +14,7 @@
time_sleep_until( $time );
var_dump( time() >= $time );
?>
+===DONE===
--EXPECT--
bool(true)
+===DONE===
Modified:
php/php-src/branches/PHP_5_2/ext/standard/tests/misc/time_sleep_until_error1.phpt
===================================================================
---
php/php-src/branches/PHP_5_2/ext/standard/tests/misc/time_sleep_until_error1.phpt
2009-08-27 19:01:36 UTC (rev 287818)
+++
php/php-src/branches/PHP_5_2/ext/standard/tests/misc/time_sleep_until_error1.phpt
2009-08-27 19:30:35 UTC (rev 287819)
@@ -1,5 +1,9 @@
--TEST--
time_sleep_until() function - error test for time_sleep_until()
+--SKIPIF--
+<?php
+ function_exists('time_sleep_until') or die('skip time_sleep_until() is
not supported in this build.');
+?>
--CREDITS--
Fabio Fabbrucci [email protected]
Danilo Sanchi [email protected]
@@ -8,6 +12,8 @@
<?php
var_dump(time_sleep_until(time()-1));
?>
+===DONE===
--EXPECTF--
Warning: time_sleep_until(): Sleep until to time is less than current time in
%s on line 2
bool(false)
+===DONE===
Modified:
php/php-src/branches/PHP_5_2/ext/standard/tests/misc/time_sleep_until_error3.phpt
===================================================================
---
php/php-src/branches/PHP_5_2/ext/standard/tests/misc/time_sleep_until_error3.phpt
2009-08-27 19:01:36 UTC (rev 287818)
+++
php/php-src/branches/PHP_5_2/ext/standard/tests/misc/time_sleep_until_error3.phpt
2009-08-27 19:30:35 UTC (rev 287819)
@@ -1,5 +1,9 @@
--TEST--
time_sleep_until() function - error test for time_sleep_until()
+--SKIPIF--
+<?php
+ function_exists('time_sleep_until') or die('skip time_sleep_until() is
not supported in this build.');
+?>
--CREDITS--
Francesco Fullone [email protected]
#PHPTestFest Cesena Italia on 2009-06-20
@@ -7,6 +11,8 @@
<?php
var_dump(time_sleep_until());
?>
+===DONE===
--EXPECTF--
Warning: time_sleep_until() expects exactly 1 parameter, 0 given in %s on line
2
NULL
+===DONE===
Modified: php/php-src/branches/PHP_5_2/tests/func/time_sleep_until_basic.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/tests/func/time_sleep_until_basic.phpt
2009-08-27 19:01:36 UTC (rev 287818)
+++ php/php-src/branches/PHP_5_2/tests/func/time_sleep_until_basic.phpt
2009-08-27 19:30:35 UTC (rev 287819)
@@ -1,5 +1,9 @@
--TEST--
-time_sleep_until — Make the script sleep until the specified time
+time_sleep_until() : Make the script sleep until the specified time
+--SKIPIF--
+<?php
+ function_exists('time_sleep_until') or die('skip time_sleep_until() is
not supported in this build.');
+?>
--CREDITS--
Àlex Corretgé - [email protected]
--FILE--
@@ -8,8 +12,11 @@
$timeA = time();
time_sleep_until($timeA+3);
$timeB = time();
-echo ($timeB - $timeA) . " seconds.";
+echo ($timeB - $timeA) . " seconds.\n";
?>
+===DONE===
--EXPECT--
-3 seconds.
\ No newline at end of file
+3 seconds.
+===DONE===
+
\ No newline at end of file
Modified: php/php-src/branches/PHP_5_2/tests/func/time_sleep_until_error2.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/tests/func/time_sleep_until_error2.phpt
2009-08-27 19:01:36 UTC (rev 287818)
+++ php/php-src/branches/PHP_5_2/tests/func/time_sleep_until_error2.phpt
2009-08-27 19:30:35 UTC (rev 287819)
@@ -1,5 +1,9 @@
--TEST--
-time_sleep_until — Make the script sleep until the specified time
+time_sleep_until() : Make the script sleep until the specified time
+--SKIPIF--
+<?php
+ function_exists('time_sleep_until') or die('skip time_sleep_until() is
not supported in this build.');
+?>
--CREDITS--
Àlex Corretgé - [email protected]
--FILE--
@@ -8,9 +12,11 @@
$timeA = time();
time_sleep_until($timeA-3);
$timeB = time();
-echo ($timeB - $timeA) . " seconds.";
+echo ($timeB - $timeA) . " seconds.\n";
?>
+===DONE===
--EXPECTF--
Warning: time_sleep_until(): Sleep until to time is less than current time in
%s.php on line %d
-0 seconds.
\ No newline at end of file
+0 seconds.
+===DONE===
\ No newline at end of file
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php