Learn CakePHP: With Unit Testing
暫譯: 學習 CakePHP:單元測試實務
Rādhārādhya Dāsa
- 出版商: Apress
- 出版日期: 2016-08-22
- 售價: $1,290
- 貴賓價: 9.5 折 $1,226
- 語言: 英文
- 頁數: 114
- 裝訂: Paperback
- ISBN: 1484212134
- ISBN-13: 9781484212134
-
相關分類:
PHP、軟體測試、Unit Test 單元測試
海外代購書籍(需單獨結帳)
商品描述
Accelerate your development of PHP applications using the popular CakePHP web application development framework and unit testing. This short book shows you how to carry out test-driven development with fixtures, model tests, controller tests, mocks, and test suites. Learn CakePHP contains all you need to get started with the CakePHP framework to build faster, better PHP-based web applications.
You'll learn about unit testing and how to implement it in CakePHP. This approach to coding leads to better code, better applications, and better programming habits. With this knowledge your PHP skills will go from strength to strength allowing you to write more and improved code.
- What is unit testing and CakePHP and how to put the two together
- What is clean coding
- What is TDD and the development cycle using this approach
- How to work with fixtures, model tests, text callbacks, controller tests, and more
- How to do mocks, test suites, testing from the command line and more
- How to work with code coverage, fixtures data, and private methods
商品描述(中文翻譯)
加速您使用流行的 CakePHP 網頁應用程式開發框架和單元測試開發 PHP 應用程式的過程。本書簡短明瞭,展示了如何使用測試驅動開發(TDD)進行開發,包括測試資料、模型測試、控制器測試、模擬和測試套件。《學習 CakePHP》包含了您開始使用 CakePHP 框架所需的一切,以便更快、更好地構建基於 PHP 的網頁應用程式。
您將學習單元測試及如何在 CakePHP 中實現它。這種編碼方法能夠產生更好的程式碼、更好的應用程式和更好的編程習慣。掌握這些知識後,您的 PHP 技能將不斷提升,使您能夠編寫更多且更優化的程式碼。
您將學到的內容:
- 什麼是單元測試和 CakePHP,以及如何將兩者結合
- 什麼是乾淨的程式碼
- 什麼是 TDD 及其開發週期
- 如何使用測試資料、模型測試、文本回調、控制器測試等
- 如何進行模擬、測試套件、從命令行進行測試等
- 如何處理程式碼覆蓋率、測試資料和私有方法
本書適合對象:
本書適合有經驗的 PHP 程式設計師和網頁開發人員,特別是那些對 CakePHP 和/或單元測試幾乎沒有經驗的人。