xref: /PHP-5.6/ext/calendar/tests/jdtojewish.phpt (revision 0826d393)
1--TEST--
2jdtojewish() function
3--SKIPIF--
4<?php include 'skipif.inc'; ?>
5--FILE--
6<?php
7
8var_dump(jdtojewish(gregoriantojd(10,28,2002))."\r\n".
9	jdtojewish(gregoriantojd(10,28,2002),true)."\r\n".
10	jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n".
11	jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM)."\r\n".
12	jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM_GERESH+CAL_JEWISH_ADD_ALAFIM)."\r\n".
13	jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_GERESHAYIM)."\r\n".
14	jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM)."\r\n".
15	jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n".
16	jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM)."\r\n".
17	jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM+CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n".
18	jdtojewish(gregoriantojd(3,10,2007))."\r\n");
19?>
20--EXPECTF--
21string(%d) "2/22/5763
22�� ���� �����
23�� ���� �'����
24�� ���� � ����� ����
25�� ���� �' ����� ����
26�"� ���� ����"�
27�' ���� ����"�
28�' ���� �'���"�
29�' ���� � ����� ���"�
30�' ���� �' ����� ���"�
317/20/5767
32"
33