PHPUnit Essentials
暫譯: PHPUnit 基礎精要
Zdenek Machek
- 出版商: Packt Publishing
- 出版日期: 2014-05-18
- 售價: $1,840
- 貴賓價: 9.5 折 $1,748
- 語言: 英文
- 頁數: 324
- 裝訂: Paperback
- ISBN: 1783283432
- ISBN-13: 9781783283439
-
相關分類:
Unit Test 單元測試
下單後立即進貨 (約3~4週)
買這商品的人也買了...
-
並行之美學-撰寫平行應用程式的新手指南 (The Art of Concurrency: A Thread Monkey's Guide to Writing Parallel Applications)$580$458 -
Effective SQL 中文版 | 寫出良好 SQL 的 61個具體做法 (Effective SQL : 61 Specific Ways to Write Better SQL)$450$356 -
為你自己學 Git$500$425 -
無瑕的程式碼-整潔的軟體設計與架構篇 (Clean Architecture: A Craftsman's Guide to Software Structure and Design)$580$452 -
CODE COMPLETE:軟體開發實務指南, 2/e (中文版) (Code Complete: A Practical Handbook of Software Construction, 2/e)$1,280$998 -
Working Effectively with Legacy Code : 管理、修改、重構遺留程式碼的藝術 (中文版)$720$562 -
邁向 Linux 工程師之路:Superuser 一定要懂的技術與運用, 2/e (How Linux Works: What Every Superuser Should Know, 2/e)$600$468 -
大話 AWS 雲端架構:雲端應用架構圖解輕鬆學$550$429 -
基礎架構即程式碼|管理雲端伺服器 (Infrastructure as Code: Managing Servers in the Cloud)$780$616 -
Web 開發者一定要懂的駭客攻防術 (Web Security for Developers: Real Threats, Practical Defense)$420$332 -
大規模重構|奪回源碼庫的控制權 (Refactoring at Scale: Regaining Control of Your Codebase)$580$458 -
資料密集型應用系統設計 (Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems)$980$774 -
內行人才知道的系統設計面試指南$580$458 -
軟體架構:困難部分 (Software Architecture: The Hard Parts: Modern Trade-Off Analyses for Distributed Architectures)$780$616 -
Kubernetes 建置與執行 : 邁向基礎設施的未來, 3/e (Kubernetes: Up and Running: Dive Into the Future of Infrastructure, 3/e)$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 的開發者的良好資訊來源。
