php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /opt/php-7.0.1/ext/standard/tests/strings/ |
files >> //opt/php-7.0.1/ext/standard/tests/strings/similar_text_error.phpt |
--TEST-- similar_text(), error tests for missing parameters --CREDITS-- Mats Lindh <mats at lindh.no> #Testfest php.no --FILE-- <?php /* Prototype : proto int similar_text(string str1, string str2 [, float percent]) * Description: Calculates the similarity between two strings * Source code: ext/standard/string.c */ $extra_arg = 10; echo "\n-- Testing similar_text() function with more than expected no. of arguments --\n"; similar_text("abc", "def", $percent, $extra_arg); echo "\n-- Testing similar_text() function with less than expected no. of arguments --\n"; similar_text("abc"); ?> ===DONE=== --EXPECTF-- -- Testing similar_text() function with more than expected no. of arguments -- Warning: similar_text() expects at most 3 parameters, 4 given in %s on line %d -- Testing similar_text() function with less than expected no. of arguments -- Warning: similar_text() expects at least 2 parameters, 1 given in %s on line %d ===DONE===y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`