make test runner work in open source repo
[hiphop-php.git] / hphp / test / zend / bad / ext-date / oo_001.php
blob04df71fa14a066d953021a8090356ca873225b49
1 <?php
2 date_default_timezone_set('UTC');
3 class _d extends DateTime {
4 function __construct() {
7 class _t extends DateTimeZone {
8 function __construct() {
12 $d = new DateTime;
13 var_dump($d->format("Y-m-d H:i:s"));
15 $d = new _d;
16 var_dump($d->format("Y-m-d H:i:s"));
18 try {
19 new DateTime("1am todax");
20 } catch (Exception $e) {
21 echo $e->getMessage(),"\n";
24 $t = new DateTimeZone("UTC");
25 var_dump($t->getName());
27 $t = new _t;
28 var_dump($t->getName());
30 try {
31 new DateTimeZone("GottaFindThisOne");
32 } catch (Exception $e) {
33 echo $e->getMessage(),"\n";
36 echo "DONE\n";