mike Tue Aug 1 16:49:08 2006 UTC
Modified files:
/php-src/ext/date/tests oo_001.phpt
Log:
- update test
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/oo_001.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/date/tests/oo_001.phpt
diff -u php-src/ext/date/tests/oo_001.phpt:1.1
php-src/ext/date/tests/oo_001.phpt:1.2
--- php-src/ext/date/tests/oo_001.phpt:1.1 Tue Aug 1 13:27:41 2006
+++ php-src/ext/date/tests/oo_001.phpt Tue Aug 1 16:49:08 2006
@@ -17,6 +17,11 @@
$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 @@
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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php