Skip to content
UdemySoftware TestingPaid courseAll LevelsCertificate

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

icon
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

icon
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!

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

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!

icon
More courses by Robert Apollo

$59.99

$10.99

$69.99

$19.99

icon
More Software Testing courses

$59.99

$84.99

$10.99

$10.99

$13.99

$149.99

icon
Reviews

4.3

181 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

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.

Showing all 10 reviews on CourseDuck

Read all 181 reviews on Udemy

icon
Quality Score

No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 86 / 100