Learn CakePHP: With Unit Testing

Rādhārādhya Dāsa

  • 出版商: Apress
  • 出版日期: 2016-08-22
  • 售價: $1,250
  • 貴賓價: 9.5$1,188
  • 語言: 英文
  • 頁數: 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 you'll learn
  • 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

Who this book is for

This book is for experienced PHP programmers and web developers who have little or no experience using CakePHP and/or unit testing.  




商品描述(中文翻譯)

加快使用流行的CakePHP網頁應用程式開發框架和單元測試來開發PHP應用程式。這本短書向您展示如何使用固定資料、模型測試、控制器測試、模擬和測試套件進行測試驅動開發。《學習CakePHP》包含了您開始使用CakePHP框架建立更快、更好的基於PHP的網頁應用程式所需的一切。

您將學習單元測試以及如何在CakePHP中實施它。這種編碼方法導致更好的程式碼、更好的應用程式和更好的編程習慣。憑藉這些知識,您的PHP技能將不斷增強,使您能夠撰寫更多且更好的程式碼。

您將學習什麼:
- 什麼是單元測試和CakePHP,以及如何將它們結合起來
- 什麼是乾淨的程式碼
- 什麼是測試驅動開發以及使用這種方法的開發週期
- 如何使用固定資料、模型測試、文本回呼、控制器測試等
- 如何進行模擬、測試套件、命令行測試等
- 如何使用程式碼覆蓋率、固定資料和私有方法

這本書適合有經驗的PHP程式設計師和網頁開發人員,他們對CakePHP和/或單元測試幾乎沒有經驗。