Course Information
- Available
- *The delivery and distribution of the certificate are subject to the policies and arrangements of the course provider.
Course Overview
Includes Test-Driven Development (TDD) by Creating Real Life App with PHP and PHPUnit and Selenium Acceptance Testing
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!
Course Content
- 8 section(s)
- 78 lecture(s)
- Section 1 Introduction
- Section 2 PHPUnit basics
- Section 3 PHPUnit configuration
- Section 4 PHPUnit - dive deeper
- Section 5 Test Doubles & mocking real objects - replacing real objects for testing
- Section 6 Acceptance (not only unit) testing with PHPUnit. Use Selenium
- Section 7 TDD - test driven development with PHPUnit & Selenium
- Section 8 Testing REST API's with PHPUnit, Guzzle & Json Server
What You’ll 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
Skills covered in this course
Reviews
-
OOleh Mazniev
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.
-
SSerhiy Kryvobok
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.
-
HHoracio Lopes
Needs to be updated to modern php and libraries.
-
JJorge Reig
is obsolete and the examples are not working because of this