Annotation of embedaddon/php/Zend/tests/005.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: strcasecmp() tests
! 3: --FILE--
! 4: <?php
! 5:
! 6: var_dump(strcasecmp(""));
! 7: var_dump(strcasecmp("", ""));
! 8: var_dump(strcasecmp("aef", "dfsgbdf"));
! 9: var_dump(strcasecmp("qwe", "qwer"));
! 10: var_dump(strcasecmp("qwerty", "QweRty"));
! 11: var_dump(strcasecmp("qwErtY", "qwerty"));
! 12: var_dump(strcasecmp("q123", "Q123"));
! 13: var_dump(strcasecmp("01", "01"));
! 14:
! 15: echo "Done\n";
! 16: ?>
! 17: --EXPECTF--
! 18: Warning: strcasecmp() expects exactly 2 parameters, 1 given in %s on line %d
! 19: NULL
! 20: int(0)
! 21: int(-3)
! 22: int(-1)
! 23: int(0)
! 24: int(0)
! 25: int(0)
! 26: int(0)
! 27: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>