PHPUnit Essentials
暫譯: PHPUnit 基礎精要
Zdenek Machek
- 出版商: Packt Publishing
- 出版日期: 2014-05-18
- 售價: $1,880
- 貴賓價: 9.5 折 $1,786
- 語言: 英文
- 頁數: 324
- 裝訂: Paperback
- ISBN: 1783283432
- ISBN-13: 9781783283439
-
相關分類:
PHP
下單後立即進貨 (約3~4週)
買這商品的人也買了...
-
$580$458 -
$450$356 -
$500$425 -
$580$452 -
$1,280$1,088 -
$720$612 -
$600$468 -
$550$429 -
$780$616 -
$420$332 -
$580$458 -
$980$774 -
$580$458 -
$780$616 -
$580$458
商品描述
About This Book
- Learn how to install PHPUnit as well as how to write and execute tests
- Understand the advanced concepts of testing using test doubles and the continuous integration process
- A hands-on, step-by-step guide full of real-life examples to help you learn quickly and effectively
Who This Book Is For
This book is a practical guide featuring a step-by-step approach that aims to help PHP developers who want to learn or improve their software testing skills. It also takes you through many real-life examples encountered by PHP developers to help you avoid common pitfalls.
What You Will Learn
- How to install PHPUnit and configure IDEs for PHPUnit support
- What are unit tests and why to test code
- Write test doubles and learn how to replace dependencies
- Explore how to test legacy code
- Test code calling APIs and connecting to the database
- Run functional tests in a web browser using Selenium tests
- Use tests as part of the continuous integration process
- Discover the alternatives to PHPUnit
- Use PHPUnit tests in the Jenkins and Travis CI servers
In Detail
The ability to write unit tests and software testing have become skills that every PHP developer should master.
This book is a practical guide to PHPUnit and unit testing, covering all aspects of writing PHPUnit tests and using them. The book shows why testable code is better code and how to write good tests with the help of simple and easy-to-understand examples.
With this book, you will learn how to write, organize, and execute effective tests. Step-by-step techniques of how to write testable code, how to refactor the code, and how to run your tests are shown. You will also learn about advanced testing techniques, including how to test databases, APIs, and legacy code. PHPUnit Essentials is a guide for PHP developers who want to learn or improve their software testing skills. It is a book for developers who begin with testing but is also a good source of information for developers who are already familiar with PHPUnit.
商品描述(中文翻譯)
開始使用 PHPUnit,學習如何使用先進技術編寫和測試代碼
本書介紹
- 學習如何安裝 PHPUnit 以及如何編寫和執行測試
- 理解使用測試替身和持續整合過程的進階測試概念
- 一本實用的逐步指南,充滿真實案例,幫助您快速有效地學習
本書適合誰
本書是一本實用指南,採用逐步的方法,旨在幫助希望學習或提升軟體測試技能的 PHP 開發者。它還帶您了解許多 PHP 開發者所遇到的真實案例,幫助您避免常見的陷阱。
您將學到什麼
- 如何安裝 PHPUnit 並配置 IDE 以支援 PHPUnit
- 什麼是單元測試以及為什麼要測試代碼
- 編寫測試替身並學習如何替換依賴項
- 探索如何測試遺留代碼
- 測試調用 API 和連接到資料庫的代碼
- 使用 Selenium 測試在網頁瀏覽器中運行功能測試
- 將測試作為持續整合過程的一部分
- 發現 PHPUnit 的替代方案
- 在 Jenkins 和 Travis CI 伺服器中使用 PHPUnit 測試
詳細內容
編寫單元測試和軟體測試的能力已成為每位 PHP 開發者應該掌握的技能。
本書是一本關於 PHPUnit 和單元測試的實用指南,涵蓋了編寫 PHPUnit 測試和使用它們的所有方面。本書展示了為什麼可測試的代碼是更好的代碼,以及如何通過簡單易懂的範例編寫良好的測試。
通過本書,您將學習如何編寫、組織和執行有效的測試。逐步技術將展示如何編寫可測試的代碼、如何重構代碼以及如何運行測試。您還將學習進階測試技術,包括如何測試資料庫、API 和遺留代碼。《PHPUnit Essentials》是希望學習或提升軟體測試技能的 PHP 開發者的指南。這是一本適合剛開始測試的開發者的書籍,同時也是對已經熟悉 PHPUnit 的開發者的良好資訊來源。