Annotation of embedaddon/php/ext/standard/tests/strings/stripos.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: stripos() function test
! 3: --FILE--
! 4: <?php
! 5: var_dump(stripos("test string", "TEST"));
! 6: var_dump(stripos("test string", "strIng"));
! 7: var_dump(stripos("test string", "stRin"));
! 8: var_dump(stripos("test string", "t S"));
! 9: var_dump(stripos("test string", "G"));
! 10: var_dump(stripos("te".chr(0)."st", chr(0)));
! 11: var_dump(stripos("tEst", "test"));
! 12: var_dump(stripos("teSt", "test"));
! 13: var_dump(stripos("", ""));
! 14: var_dump(stripos("a", ""));
! 15: var_dump(stripos("", "a"));
! 16: var_dump(stripos("a", " "));
! 17: var_dump(stripos("a", "a"));
! 18: var_dump(stripos("", 1));
! 19: var_dump(stripos("", false));
! 20: var_dump(stripos("", true));
! 21: var_dump(stripos("a", 1));
! 22: var_dump(stripos("a", false));
! 23: var_dump(stripos("a", true));
! 24: var_dump(stripos("1", 1));
! 25: var_dump(stripos("0", false));
! 26: var_dump(stripos("1", true));
! 27: var_dump(stripos("\\\\a", "\\a"));
! 28:
! 29: echo "Done\n";
! 30: ?>
! 31: --EXPECT--
! 32: int(0)
! 33: int(5)
! 34: int(5)
! 35: int(3)
! 36: int(10)
! 37: int(2)
! 38: int(0)
! 39: int(0)
! 40: bool(false)
! 41: bool(false)
! 42: bool(false)
! 43: bool(false)
! 44: int(0)
! 45: bool(false)
! 46: bool(false)
! 47: bool(false)
! 48: bool(false)
! 49: bool(false)
! 50: bool(false)
! 51: bool(false)
! 52: bool(false)
! 53: bool(false)
! 54: int(1)
! 55: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>