summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2006-08-01 16:49:17 +0000
committerMichael Wallner <mike@php.net>2006-08-01 16:49:17 +0000
commita5ddba6f80e09767c396b99a2c857547ed97b438 (patch)
tree4a4ad251d37c4cd3cb42a020543beb0d619775ff
parentefa04c8a22c433446a18a9cae4c219df3fb063c0 (diff)
downloadphp-git-a5ddba6f80e09767c396b99a2c857547ed97b438.tar.gz
- update test
-rw-r--r--ext/date/tests/oo_001.phpt6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/date/tests/oo_001.phpt b/ext/date/tests/oo_001.phpt
index 79ea0091bc..a8558f17a8 100644
--- a/ext/date/tests/oo_001.phpt
+++ b/ext/date/tests/oo_001.phpt
@@ -17,6 +17,11 @@ var_dump($d->format("Y-m-d H:i:s"));
$d = new _d;
var_dump($d->format("Y-m-d H:i:s"));
+try {
+ new DateTime("1am todax");
+} catch (Exception $e) {
+ echo $e->getMessage(),"\n";
+}
$t = new DateTimeZone("UTC");
var_dump($t->getName());
@@ -37,6 +42,7 @@ string(19) "%d-%d-%d %d:%d:%d"
Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in %soo_001.php on line %d
bool(false)
+DateTime::__construct(): Failed to parse time string (1am todax) at position 4 (t): The timezone could not be found in the database
string(3) "UTC"
Warning: DateTimeZone::getName(): The DateTimeZone object has not been correctly initialized by its constructor in %soo_001.php on line %d