X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=tests%2Ftime%2Fasc_gmtime001.phpt;h=0108da0e167e8b105b590efd1c9876c075980687;hp=3ae78509908b65ca4b84a28b0902ca29393e6227;hb=9bcb1df0786a8193d65949c857baaba2f4296e84;hpb=61918592ab618c073b9846783ce79fed9f26c5f7 diff --git a/tests/time/asc_gmtime001.phpt b/tests/time/asc_gmtime001.phpt index 3ae7850..0108da0 100644 --- a/tests/time/asc_gmtime001.phpt +++ b/tests/time/asc_gmtime001.phpt @@ -11,18 +11,39 @@ psi.directory = {PWD}/../../psi.d:{PWD} --FILE-- ===TEST=== getMessage(),"\n"; +} +var_dump(psi\gmtime(1)); var_dump(psi\asctime(psi\gmtime(1234567890))); var_dump(psi\asctime_r(psi\gmtime_r(1234567890))); ?> ===DONE=== --EXPECT-- ===TEST=== -string(25) "Sun Jan 0 00:00:00 1900 -" -string(25) "Sun Jan 0 00:00:00 1900 -" +psi\asctime() expects parameter 1 to be array, null given +array(9) { + ["tm_sec"]=> + int(1) + ["tm_min"]=> + int(0) + ["tm_hour"]=> + int(0) + ["tm_mday"]=> + int(1) + ["tm_mon"]=> + int(0) + ["tm_year"]=> + int(70) + ["tm_wday"]=> + int(4) + ["tm_yday"]=> + int(0) + ["tm_isdst"]=> + int(0) +} string(25) "Fri Feb 13 23:31:30 2009 " string(25) "Fri Feb 13 23:31:30 2009