Join Justin Yost for an in-depth discussion in this video What you should know, part of Test-Driven Development in PHP with PHPUnit.
- View Offline
- [Instructor] To follow along with this course, you should have a basic working knowledge of PHP. You will also need PHP 5.6 or newer installed and accessible from the command line. We'll use a terminal application to run some PHP files that we'll create together to explore some of the different concepts I'll explain. Don't worry if you have not worked with PHP extensively before. The problems we'll be solving in this course will be relatively simple. We'll look at the tools and techniques to make you a better developer with any language.
However, we'll be specifically focusing on test-driven development with PHP. We'll also use namespaces in PHP. We won't cover namespaces in great detail. So if you would like more information about them, take a look at the documentation at php.net. At the end of this course, we'll demonstrate testing with databases. If you are on a Mac, you will not need to do anything. However, on other devices, you will need to have installed a database software program such as MySQL or SQLite.
You can learn more about PHP and MySQL through the PHP with MySQL Essential Training.
- Why use unit testing?
- Writing unit tests
- Extending unit tests
- Filtering PHPUnit tests
- Building dummy objects
- Working with data providers
- Writing an exception-based test
- Using TDD tactics
- Using PHPUnit advanced tactics, such as database tests