YoVDO

PHP: Test-Driven Development with PHPUnit

Offered By: LinkedIn Learning

Tags

Test-Driven Development Courses Software Development Courses PHP Courses Unit Testing Courses Automated testing Courses PHPUnit Courses

Course Description

Overview

Develop better software with fewer bugs with test-driven development and PHPUnit. Learn how to write unit tests in PHP using this popular tool and methodology.

Syllabus

Introduction
  • Welcome
  • What you should know
  • How to use the exercise files
1. The Basics of Test-Driven Development
  • What is unit testing?
  • Why use unit testing?
  • Automated vs. manual testing
  • Install PHPUnit
  • Write a unit test
  • Extend a unit test
  • Write a test-driven development method
  • Filter PHPUnit tests
2. Advanced Test-Driven Development
  • Test doubles overview
  • Build a dummy object
  • Build a test stub
  • Test mock
  • Data providers
  • Advanced data providers
  • Write an exception-based test
3. Test-Driven Development Tactics
  • The test-driven development cycle
  • Advantages of TDD
  • Refactor with TDD
  • Decouple code with TDD
4. PHPUnit Advanced Tactics
  • Code coverage basics
  • Advanced code coverage
  • Database tests
Conclusion
  • Next steps

Taught by

Justin Yost

Related Courses

Object Oriented PHP & TDD with PHPUnit from Scratch
Udemy
Getting Started with PHP Unit Testing Course (How To)
Treehouse
Unit Testing with PHPUnit
Pluralsight
PHP Unit Testing with PHPUnit
Udemy
Advance your Skills as a PHP Developer: Testing and Debugging
LinkedIn Learning