summaryrefslogtreecommitdiff
path: root/Zend/tests/005.phpt
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-06-27 21:10:04 +0000
committerAntony Dovgal <tony2001@php.net>2006-06-27 21:10:04 +0000
commit41ada4ba9b040a54461c651a9082ac445846e3f6 (patch)
treeac261b15fef0bc69ca649f1fc610374c43db0a70 /Zend/tests/005.phpt
parent29b0798cc8ecf8c150dcb7befb98f052965e6d5f (diff)
downloadphp-git-41ada4ba9b040a54461c651a9082ac445846e3f6.tar.gz
add new tests
Diffstat (limited to 'Zend/tests/005.phpt')
-rw-r--r--Zend/tests/005.phpt27
1 files changed, 27 insertions, 0 deletions
diff --git a/Zend/tests/005.phpt b/Zend/tests/005.phpt
new file mode 100644
index 0000000000..15a510bfe8
--- /dev/null
+++ b/Zend/tests/005.phpt
@@ -0,0 +1,27 @@
+--TEST--
+strcasecmp() tests
+--FILE--
+<?php
+
+var_dump(strcasecmp(""));
+var_dump(strcasecmp("", ""));
+var_dump(strcasecmp("aef", "dfsgbdf"));
+var_dump(strcasecmp("qwe", "qwer"));
+var_dump(strcasecmp("qwerty", "QweRty"));
+var_dump(strcasecmp("qwErtY", "qwerty"));
+var_dump(strcasecmp("q123", "Q123"));
+var_dump(strcasecmp("01", "01"));
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: Wrong parameter count for strcasecmp() in %s on line %d
+NULL
+int(0)
+int(-3)
+int(-1)
+int(0)
+int(0)
+int(0)
+int(0)
+Done