PHP: Test-Driven Development with PHPUnit
Offered By: LinkedIn Learning
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
- 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
- Test doubles overview
- Build a dummy object
- Build a test stub
- Test mock
- Data providers
- Advanced data providers
- Write an exception-based test
- The test-driven development cycle
- Advantages of TDD
- Refactor with TDD
- Decouple code with TDD
- Code coverage basics
- Advanced code coverage
- Database tests
- Next steps
Taught by
Justin Yost
Related Courses
Andre's LarabitsLaracasts Code Katas with PHPUnit
Laracasts Guest Spotlight
Laracasts Testing Laravel
Laracasts Playing With PHP
Laracasts