summaryrefslogtreecommitdiff
path: root/ext/calendar
diff options
context:
space:
mode:
authorTal Peer <tal@php.net>2002-11-27 15:54:32 +0000
committerTal Peer <tal@php.net>2002-11-27 15:54:32 +0000
commit1d768548cd62a6bc59b69ce67ec7274aad732eae (patch)
treef995994b68e6bbaa2c89c69f755d83d14e6480ad /ext/calendar
parent8aac1ce2eebcc7365518c25186696de3c4268605 (diff)
downloadphp-git-1d768548cd62a6bc59b69ce67ec7274aad732eae.tar.gz
jdtojewish() test
Diffstat (limited to 'ext/calendar')
-rw-r--r--ext/calendar/tests/jdtojewish.phpt28
1 files changed, 28 insertions, 0 deletions
diff --git a/ext/calendar/tests/jdtojewish.phpt b/ext/calendar/tests/jdtojewish.phpt
new file mode 100644
index 0000000000..9ec597aa95
--- /dev/null
+++ b/ext/calendar/tests/jdtojewish.phpt
@@ -0,0 +1,28 @@
+--TEST--
+jdtojewish() function
+--FILE--
+<?
+
+var_dump(jdtojewish(gregoriantojd(10,28,2002))."\r\n".
+ jdtojewish(gregoriantojd(10,28,2002),true)."\r\n".
+ jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n".
+ jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM)."\r\n".
+ jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM_GERESH+CAL_JEWISH_ADD_ALAFIM)."\r\n".
+ jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_GERESHAYIM)."\r\n".
+ jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM)."\r\n".
+ jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n".
+ jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM)."\r\n".
+ jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM+CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n");
+?>
+--EXPECT--
+string(184) "2/22/5763
+כב חשון התשסג
+כב חשון ה'תשסג
+כב חשון ה אלפים תשסג
+כב חשון ה' אלפים תשסג
+כ"ב חשון התשס"ג
+ב' חשון התשס"ג
+ב' חשון ה'תשס"ג
+ב' חשון ה אלפים תשס"ג
+ב' חשון ה' אלפים תשס"ג
+"