xref: /PHP-5.3/ext/calendar/tests/jdtojewish.phpt (revision c92ae847)
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?>
19--EXPECT--
20string(184) "2/22/5763
21�� ���� �����
22�� ���� �'����
23�� ���� � ����� ����
24�� ���� �' ����� ����
25�"� ���� ����"�
26�' ���� ����"�
27�' ���� �'���"�
28�' ���� � ����� ���"�
29�' ���� �' ����� ���"�
30"
31