Are there any good open source php test suites? So far I found only http://www.lastcraft.com/simple_test.php but I couldn’t found much reviews about this project. Can any one suggest me some good test suites for the php?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The de-facto standards are:
This is an example of a test case with PHPUnit (from the manual):
And this is a test with phpt:
--TEST-- URL stat PHP_STREAM_URL_STAT_QUIET does not leak memory --SKIPIF-- <?php if(!extension_loaded("rar")) print "skip"; ?> --FILE-- <?php $file = "rar://" . dirname(__FILE__) . '/dirlink_unix.rar' . "#non_existant_file"; var_dump(is_dir($file)); echo "Done.\n"; --EXPECTF-- bool(false) Done.