summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basic/bug45986.phpt12
-rw-r--r--tests/func/time_sleep_until_basic.phpt15
-rw-r--r--tests/func/time_sleep_until_error2.phpt16
-rw-r--r--tests/lang/bug44827.phpt14
4 files changed, 26 insertions, 31 deletions
diff --git a/tests/basic/bug45986.phpt b/tests/basic/bug45986.phpt
new file mode 100644
index 0000000000..5745d272c4
--- /dev/null
+++ b/tests/basic/bug45986.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug #45986 (wrong error messag for a non existant file on rename)
+--CREDITS--
+Sebastian Schürmann
+sebs@php.net
+Testfest 2009 Munich
+--FILE--
+<?php
+rename('foo', 'bar');
+?>
+--EXPECTREGEX--
+.*No such.*
diff --git a/tests/func/time_sleep_until_basic.phpt b/tests/func/time_sleep_until_basic.phpt
deleted file mode 100644
index def114cc48..0000000000
--- a/tests/func/time_sleep_until_basic.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---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
deleted file mode 100644
index bb999b9bef..0000000000
--- a/tests/func/time_sleep_until_error2.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---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
diff --git a/tests/lang/bug44827.phpt b/tests/lang/bug44827.phpt
new file mode 100644
index 0000000000..38e1d45691
--- /dev/null
+++ b/tests/lang/bug44827.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Bug #44827 (Class error when trying to access :: as constant)
+--CREDITS--
+Sebastian Schürmann
+sebs@php.net
+Testfest Munich 2009
+--FILE--
+<?php
+define('::', true);
+var_dump(constant('::'));
+?>
+--EXPECTREGEX--
+.*Fatal.*
+