PHPUnit袖珍指南-概述

概述

聰明的Web開發人員會告訴你,越快找到代碼的錯誤,你就能越快修正它,長期而言,項目成本越低。好了,能最有效的檢測PHP代碼中的錯誤的工具是PHPUnit,一個開發源代碼的框架,它在你不在的時候,自動進行成套的單元測試。使用PHPUnit的好處是顯而易見的:

l         減少用於測試代碼的工作量

l         減少總體軟件缺陷

l         增加對代碼的信心

l         改善你和開發源代碼的團隊夥伴的關係

直到現在,這個流行工具唯一的問題是缺乏文檔。爲了解決這個問題,O’Reilly直接找到了源頭,PHPUnit口袋書指南的作者,也是PHPUnit的創造者,Sebastian Bergmann,來解決這個問題。這本書把很多難以記憶的信息,語法,PHPUnit工作的原則,統一到一起。它也帶來了只有技術創造者才能提供的洞察力和睿智忠告。而且,本書也談到了敏捷方法和極限編程中關於測試的內容。

O’Reilly口袋書指南最近的系列中,這本快速參考書把所有的答案都帶到了你的指尖。那些對測試PHP代碼感興趣的Web應用程序開發者,會覺得本書是一個無價的伴侶。

 

--------------------------------------------------------------------------------------------------------------

原文:

Overview

Smart web developers will tell you that the sooner you detect your code mistakes, the quicker you can fix them, and the less the project will cost in the long run. Well, the most efficient way to detect your mistakes in PHP is with PHPUnit, an open source framework that automates unit testing by running a battery of tests as you go. The benefits of PHPUnit are significant:

 

a reduction in the effort required to frequently test code

fewer overall defects

added confidence in your code

improved relations with your open source teammates

 

 

 

The only problem with this popular testing tool was its lack of documentation-until now, that is. For this, O'Reilly went right to the source, as Sebastian Bergmann, the author of PHPUnit Pocket Guide, also happens to be PHPUnit's creator. This little book brings together hard-to-remember information, syntax, and rules for working with PHPUnit. It also delivers the insight and sage advice that can only come from the technology's creator. Coverage of testing under agile methodologies and Extreme Programming (XP) is also included.

 

The latest in O'Reilly's series of handy Pocket Guides, this quick-reference book puts all the answers are right at your fingertips. It's an invaluable companion for anyone interested in testing the PHP code they write for web applications.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章