PHPUnit - Unit & Selenium Testing For PHP Developers (Udemy.com)
Includes Test-Driven Development (TDD) by Creating Real Life App with PHP and PHPUnit and Selenium Acceptance Testing
Created by: Robert Apollo
Last updated January 2026
What you will learn
- You will get familiar with different types of testing code
- You will learn PHPUnit
- You will learn Selenium for PHPUnit
- You will write testable code
- You will write maintainable code
- You will find bugs quicker in your code
- You will save your time by performing fast automated tests
- You will be able to write fast automated tests for PHP applications
- You will practice PHPUnit knowledge by doing quizes, coding excersises, etc.
- You will build from scratch a real world application in PHP using Test Driven Development (TDD) approach
- You will learn how to test api clients using PHPUnit & Guzzle
How it compares
Against the other 281 rated Udemy courses in Software Testing on CourseDuck:
- Rating4.3 out of 5higher than 20% of them
- Reviews181#225 of 282 by number of reviews
- Length10.3 hourslonger than 67% of them
- Last updatedJanuary 2026more recently than 61% of them
Course Description
Do you want to be able to test your code and thus become a better programmer?
Welcome to the very comprehensive PHPUnit (testing framework for PHP) and Selenium for PHPUnit course. PHPUnit is a tool for testing code written in PHP language. And Selenium is a tool for automating web browsers that we will use in this course to test application interfaces. You will learn not only about unit tests but also what integration, functional and acceptance tests are. Particular emphasis will be placed on php unit testing.
Code testing is very important. Here there are most important benefits:
you don't waste time as a web developer for manual testing in a web browser
you find mistakes in the code faster
what's more, by mastering PHPUnit you will start to write code that is testable (you will learn in the course what is non-testable code!)
and your code will be easier to maintain, i.e. it will be easier to adapt it to the changes you might need
In short: if you haven't known PHPUnit yet, you'll simply be a better PHP programmer after completing this course. PHPUnit is a very important skill and if you're looking for a job as a PHP developer, it will allow you to increase your chances to get hired.
During the course, we will be discussing the most important aspects of PHPUnit and Selenium for PHPUnit on practical examples with hands-on coding, such as assertions, data providers, mocks and others (see the curriculum for more information). You will also learn how to test api clients.
The most interesting part of this course is building from scratch a real MVC-based application in PHP and PHPUnit using TDD - Test Driven Development approach. This is an application for managing product multi-level categories - which is not easy to implement. PHPUnit will be particularly useful here. It will be a very comprehensive TDD - not only unit tests but we will also test the user interface of this application using Selenium WebDriver. The HTML template of this application built using the Zurb Foundation Framework will be available to download (not because I think it is the best, just the template for this particular application was easiest to build using Zurb). We will be coding the backend from scratch using Slim Microframework for PHP. We will also use a great package from Laravel called illuminate/database for Laravel Eloquent ORM, thanks to which database operations are very easy.
To better consolidate the acquired knowledge the course includes, in addition to lectures, coding exercises, quizzes, assignments and other practical activities.
For each lecture that requires coding, there are file resources that you can download and copy & paste, but I encourage you to write code from the screen.
I promise that you'll be a better PHP developer after completing this PHPUnit course. And even if for some reason you will not like this course, Udemy always offers you a 30-day money back guarantee. But I doubt that you will not like it. I am 100% sure that you will be happy with this course and your PHP code will be better from now!
Instructor Details
- 4.3 Rating
181 Reviews
Robert Apollo
Robert is a seasoned technologist with over 15 years of experience in software development, systems architecture, and team leadership. Over the years, he has contributed to a wide range of projects across organizations of varying sizes and complexities, bringing deep, hands-on industry expertise.
He loves simplifying complex concepts and making technology accessible to everyone. He uses a lot of practice and visualization of the explained issues by programming something and showing the effects on the computer screen. Whether it’s breaking down advanced programming topics or sharing practical insights from his career, his passion for teaching shines through in every lesson.
He believes in lifelong learning. His mission is to empower students worldwide to unlock their potential, build impactful careers, and create innovative solutions using technology. He loves to work on complex and business-critical tasks.
Whether you’re a beginner or looking to refine your skills, Robert’s practical approach will help you bring your web development skills to life with confidence and precision.
Join him on this learning journey, and let his experience, passion, and unique teaching style guide you to mastery in Laravel and beyond!
More courses by Robert Apollo
Symfony Web Development Complete Guide: Beginner To Advanced (2026)
4.2 (1,393 Reviews)
Provider: Udemy
Time: 24.4h
$59.99
MERN Stack Project Course - Build Fullstack React App (2026)
4.5 (341 Reviews)
Provider: Udemy
Time: 30.6h
$10.99
Laravel Database Queries - From Beginner to Highly Advanced (2026)
4.4 (306 Reviews)
Provider: Udemy
Time: 8.2h
$69.99
Laravel – The Comprehensive Guide: From Beginner To Expert (2026)
4.3 (126 Reviews)
Provider: Udemy
Time: 38.9h
$19.99
More Software Testing courses
ZeroToHero TestNG Framework - From Basics to Advanced (2026)
4.9 (828 Reviews)
Provider: Udemy
Time: 6.2h
$59.99
Selenium WebDriver with Java- Basics to Advanced + Framework (2026)
4.9 (620 Reviews)
Provider: Udemy
Time: 35.5h
$84.99
Karate DSL: API Automation and Performance from Zero to Hero (2026)
4.8 (4,652 Reviews)
Provider: Udemy
Time: 7.2h
$10.99
API Testing in detail using Postman - Test Automation (2026)
4.8 (423 Reviews)
Provider: Udemy
Time: 7.8h
$10.99
Quick Introduction to Postman and API Testing for Beginners (2025)
4.7 (23,113 Reviews)
Provider: Udemy
Time: 3.2h
$13.99
Software Testing Masterclass (2026) - From Novice to Expert
4.7 (12,622 Reviews)
Provider: Udemy
Time: 9.9h
$149.99
Reviews
By Oleh Mazniev on 10/30/2025
It is the useful and informative course, but very outdated. A lot of phpunit features from this course are now deprecated or removed from new versions. Also theme about Selenium is useless caz its library doesn`t work with newer versions of php and phpunit. This course really need updates.
By Serhiy Kryvobok on 4/17/2025
Great course! Even though it is outdated actually, but it force me to handle all packages versions compatibility errors and other related issues. And all of these for sure in perspective serve main course purpose: "Become a better dev!" Thanx a lot to author.
By Santiago Marulanda on 7/25/2022
Good content but the course maybe should be updated
By Robert Wilde on 7/5/2021
Really good and advanced methods for dealing with issues when testing
By José Francisco Díaz Arredondo on 3/26/2021
The first part is very well, but the part of practic of TDD is very tired and we don't have a lot new concepts, may be the pract with raw PHP ca be better, know slim or eloquent, I thnk these are out of the course scope and it dicult the practics, in resume is good course. and could be beeter if the course cover with Fb webdrive instead of Selenium2TestCase
By Daniel Raths on 3/23/2021
I loved this course, the author explains everything in a good way, even for me non native speaker. I was a bit scared to do an english course but it paid off. Thanks a lot and greetings from Germany
By Dennis Ross on 10/21/2020
This course is outstanding! It covers ground that no other course does. The instructor is well organized and thorough in all his examples and explanations. I'm looking forward to more of his courses.
By Matteo Vignoli on 10/5/2020
Loved this course! I rarely used Unit Testing before and was always curious about the TDD approach, and with this course I clearly understood their inner working and how to actually use those in a real-life application (not just testing an "Hello World" method as many tutorials say). Explanations were pretty clear most of the time (a bit messy every now and then in the TDD section, if you want), parlance was a bit too slow in fact I had to speed up up to 1.75x, but apart from this I enjoyed it very much and it will surely help me in the future. Thank you!
By Alexis Cabrera on 8/29/2020
Me ha encantado las posibilidades que ofrece phpunit, me hubiera gustado que el curso utilizara las últimas versiones de todos los paquetes, pero en general estoy bastante satisfecho.
By Konstantin on 5/23/2020
Very extensive and practical course. Not only unit but also user interfaces testing - I like it.
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 86 / 100










