PHP UnitTest


คงเป็นเรื่องเสียเวลา ไม่สะดวก และน่าเบื่อ หากต้องทำการทดสอบการทำงาน ในระหว่างการพัฒนาระบบใดระบบหนึ่ง

คงเป็นเรื่องเสียเวลา ไม่สะดวก และน่าเบื่อ หากต้องทำการทดสอบการทำงาน ในระหว่างการพัฒนาระบบใดระบบหนึ่ง

PHP ก็มี Unit testนะครับ  ลองดู project ดังต่อไปนี้ ไล่เรียงกันตามความนิยม

PHPUnit
น่าจะเป็นผู้นำในกลุ่ม PHP unit test port มาจาก JUnit
tutorial, PEAR::PHPUnit2
PHPUnit is an open source framework for test-driven development in any PHP-based code that automates unit testing and reduces the effort required to frequently test code while developing it.
sting PHP Code with PHPUnit


Simple Test for PHP
The following assumes that you are familiar with the concept of unit testing as well as the PHP web development language.
tutorial - Simple Test PHP Unit Test Framework


phpautotest
phpautotest has to be walked through your web-site once, it can then follow the same steps and report whether the pages did not work as expected.



ดูเหมือนว่า เกือบทั้งหมด ได้รับอิทธิพลมาจาก JUnit มามากทีเดียว ส่วน PHPUnit นั้น port มาจาก JUnit เต็มๆ เลย 

Links
unit testing in php
PHP Unit Tests and the winner is phpt
Unit Test Tools - รวบรวมรายชื่อ uni test tools ไว้มากมาย

คำสำคัญ (Tags): #php#unit#test
หมายเลขบันทึก: 39583เขียนเมื่อ 19 กรกฎาคม 2006 10:09 น. ()แก้ไขเมื่อ 11 กุมภาพันธ์ 2012 15:23 น. ()สัญญาอนุญาต: จำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (0)

ไม่มีความเห็น

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท