Test-Driven Development with PHP 8: Build extensible, reliable, and maintainable enterprise-level applications using TDD and BDD with PHP (Paperback)

Sarabia, Rainier

  • 出版商: Packt Publishing
  • 出版日期: 2023-01-13
  • 售價: $1,600
  • 貴賓價: 9.5$1,520
  • 語言: 英文
  • 頁數: 336
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1803230754
  • ISBN-13: 9781803230757
  • 相關分類: PHPTDD 測試導向開發
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

A PHP developer's practical guide to planning, writing, and deploying maintainable and extensible software solutions with automated tests in a well-structured way

Key Features

- Learn to organize and translate business requirements into maintainable software
- Minimize regressions and bugs while releasing new features or bug fixes
- Build maintainable applications using SOLID principles

Book Description

PHP web developers end up building complex enterprise projects without prior experience in test-driven and behavior-driven development which results in software that’s complex and difficult to maintain. This step-by-step guide helps you manage the complexities of large-scale web applications. It takes you through the processes of working on a project, starting from understanding business requirements and translating them into actual maintainable software, to automated deployments.

You'll learn how to break down business requirements into workable and actionable lists using Jira. Using those organized lists of business requirements, you'll understand how to implement behavior-driven development (BDD) and test-driven development (TDD) to start writing maintainable PHP code. You'll explore how to use the automated tests to help you stop introducing regressions to an application each time you release code by using continuous integration.

By the end of this book, you'll have learned how to start a PHP project, break down the requirements, build test scenarios and automated tests, and write more testable and maintainable PHP code. By learning these processes, you'll be able to develop more maintainable, and reliable enterprise PHP applications.

What you will learn

- Understand how to start a software project
- Discover how to use Jira as a tool to organize your tasks
- Explore when and how to write unit, integration, and functional tests using PHPUnit
- Write behavior-driven tests using Behat
- Apply SOLID principles to help you write more testable code
- Get the most out of your automated tests by using continuous integration
- Use continuous delivery to help you prepare your application for deployment

Who this book is for

This book is for PHP software developers looking to implement TDD and BDD in their projects. An understanding of object-oriented programming is required to get the most out of this book. Professional software development experience will also be beneficial to understand real-life business cases.

商品描述(中文翻譯)

一位PHP開發者的實用指南,教你如何以自動化測試的方式規劃、撰寫和部署可維護和可擴展的軟體解決方案。

主要特點:
- 學習如何將業務需求組織和轉化為可維護的軟體
- 在發布新功能或修復錯誤時減少回歸和錯誤
- 使用SOLID原則構建可維護的應用程式

書籍描述:
PHP網頁開發者在沒有測試驅動和行為驅動開發的先前經驗下,往往會建立複雜的企業專案,導致軟體變得複雜且難以維護。這本逐步指南將幫助您管理大型網頁應用程式的複雜性。從理解業務需求並將其轉化為實際可維護的軟體,到自動化部署,這本書將帶領您完成整個專案的過程。

您將學習如何將業務需求分解為可操作的任務清單,並使用Jira進行組織。利用這些組織良好的業務需求清單,您將了解如何實施行為驅動開發(BDD)和測試驅動開發(TDD),開始撰寫可維護的PHP程式碼。您將探索如何使用自動化測試,通過持續整合來防止每次發布程式碼時引入回歸。

通過閱讀本書,您將學習如何啟動PHP專案,分解需求,建立測試場景和自動化測試,並撰寫更易於測試和維護的PHP程式碼。通過學習這些過程,您將能夠開發更易於維護和可靠的企業級PHP應用程式。

您將學到:
- 瞭解如何啟動軟體專案
- 探索如何使用Jira作為組織任務的工具
- 使用PHPUnit撰寫單元測試、整合測試和功能測試
- 使用Behat撰寫行為驅動測試
- 應用SOLID原則,幫助您撰寫更易於測試的程式碼
- 通過持續整合最大化自動化測試的效益
- 使用持續交付幫助您準備應用程式部署

本書適合PHP軟體開發者,希望在專案中實施TDD和BDD的人。需要對物件導向編程有一定的理解,並且具有專業軟體開發經驗將有助於理解實際業務案例。

目錄大綱

1. What is Test-Driven Development and Why Use It in PHP?
2. Understanding and Organizing the Business Requirements of Our Project
3. Setting Up Our Development Environment Using Docker Containers
4. Using Object-Oriented Programming in PHP
5. Unit Testing
6. Applying Behavior-Driven Development
7. Building Solution Code with BDD and TDD
8. Using TDD with SOLID Principles
9. Continuous Integration
10. Continuous Delivery
11. Monitoring

目錄大綱(中文翻譯)

1. 什麼是測試驅動開發(TDD)以及為什麼在PHP中使用它?
2. 理解並組織我們專案的業務需求
3. 使用Docker容器設置我們的開發環境
4. 在PHP中使用物件導向編程
5. 單元測試
6. 應用行為驅動開發(BDD)
7. 使用BDD和TDD建立解決方案代碼
8. 使用TDD與SOLID原則
9. 持續整合
10. 持續交付
11. 監控