summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZoe Slattery <zoe@php.net>2009-08-26 17:17:58 +0000
committerZoe Slattery <zoe@php.net>2009-08-26 17:17:58 +0000
commit1c98e49afd36a73c01edf1124fc69bc38370c7e4 (patch)
treec92d8655bff4a3e09850b0cacd1113ff7d3daa0e /tests
parentc7167ced0bc5da4703c29f03a586988a97bff299 (diff)
downloadphp-git-1c98e49afd36a73c01edf1124fc69bc38370c7e4.tar.gz
Test from 2009 testfest
Diffstat (limited to 'tests')
-rw-r--r--tests/basic/php_egg_logo_guid.phpt13
-rw-r--r--tests/basic/php_logo_guid.phpt10
-rw-r--r--tests/basic/php_real_logo_guid.phpt12
-rw-r--r--tests/basic/zend_logo_guid.phpt13
-rw-r--r--tests/func/time_sleep_until_basic.phpt15
-rw-r--r--tests/func/time_sleep_until_error2.phpt16
6 files changed, 79 insertions, 0 deletions
diff --git a/tests/basic/php_egg_logo_guid.phpt b/tests/basic/php_egg_logo_guid.phpt
new file mode 100644
index 0000000000..b3c5d7bdfd
--- /dev/null
+++ b/tests/basic/php_egg_logo_guid.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Testing php_egg_logo_guid() function
+--FILE--
+<?php
+echo php_egg_logo_guid();
+?>
+--EXPECT--
+PHPE9568F36-D428-11d2-A769-00AA001ACF42
+
+--CREDITS--
+Jason Easter <easter@phpug-wuerzburg.de>
+PHPUG Würzburg <phpug-wuerzburg.de>
+Testfest 2009 2009-06-20 \ No newline at end of file
diff --git a/tests/basic/php_logo_guid.phpt b/tests/basic/php_logo_guid.phpt
new file mode 100644
index 0000000000..b5724a96ab
--- /dev/null
+++ b/tests/basic/php_logo_guid.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Testing php_logo_guid() function
+--FILE--
+<?php
+echo php_logo_guid();
+?>
+--EXPECT--
+PHPE9568F34-D428-11d2-A769-00AA001ACF42
+--CREDITS--
+Testfest 2009 2009-06-20 \ No newline at end of file
diff --git a/tests/basic/php_real_logo_guid.phpt b/tests/basic/php_real_logo_guid.phpt
new file mode 100644
index 0000000000..2b9003a350
--- /dev/null
+++ b/tests/basic/php_real_logo_guid.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Testing php_real_logo_guid() function
+--FILE--
+<?php
+echo php_real_logo_guid();
+?>
+--EXPECT--
+PHPE9568F34-D428-11d2-A769-00AA001ACF42
+--CREDITS--
+Jason Easter <easter@phpug-wuerzburg.de>
+PHPUG Würzburg <phpug-wuerzburg.de>
+Testfest 2009 2009-06-20 \ No newline at end of file
diff --git a/tests/basic/zend_logo_guid.phpt b/tests/basic/zend_logo_guid.phpt
new file mode 100644
index 0000000000..23ca0165ae
--- /dev/null
+++ b/tests/basic/zend_logo_guid.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Testing zend_logo_guid() function
+--FILE--
+<?php
+echo zend_logo_guid();
+?>
+--EXPECT--
+PHPE9568F35-D428-11d2-A769-00AA001ACF42
+
+--CREDITS--
+Jason Easter <easter@phpug-wuerzburg.de>
+PHPUG Würzburg <phpug-wuerzburg.de>
+Testfest 2009 2009-06-20 \ No newline at end of file
diff --git a/tests/func/time_sleep_until_basic.phpt b/tests/func/time_sleep_until_basic.phpt
new file mode 100644
index 0000000000..def114cc48
--- /dev/null
+++ b/tests/func/time_sleep_until_basic.phpt
@@ -0,0 +1,15 @@
+--TEST--
+time_sleep_until — Make the script sleep until the specified time
+--CREDITS--
+Àlex Corretgé - alex@corretge.cat
+--FILE--
+<?php
+
+$timeA = time();
+time_sleep_until($timeA+3);
+$timeB = time();
+echo ($timeB - $timeA) . " seconds.";
+
+?>
+--EXPECT--
+3 seconds. \ No newline at end of file
diff --git a/tests/func/time_sleep_until_error2.phpt b/tests/func/time_sleep_until_error2.phpt
new file mode 100644
index 0000000000..bb999b9bef
--- /dev/null
+++ b/tests/func/time_sleep_until_error2.phpt
@@ -0,0 +1,16 @@
+--TEST--
+time_sleep_until — Make the script sleep until the specified time
+--CREDITS--
+Àlex Corretgé - alex@corretge.cat
+--FILE--
+<?php
+
+$timeA = time();
+time_sleep_until($timeA-3);
+$timeB = time();
+echo ($timeB - $timeA) . " seconds.";
+
+?>
+--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