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