When your web application is becoming the core of your business, it should be safeguarded from failures and mistakes that might cost your company lots of money.
PHPUnit: the basics is the training course you need to get started with writing unit tests to protect the most important parts of your PHP application.
Goal of this training course
After completion of this training course you will be able to set up PHPUnit and getting started with writing unit tests for your existing applications.
PHPUnit is not difficult to learn, but it helps if you have a good knowledge of PHP functions and inner workings. We suggest that a minimum of 2 years hands-on experience with PHP is required.
Duration & course outline
This is a 1-day training course (8h) which will cover the following subjects:
- What is “unit testing” and PHPUnit
- Example of a unit test
- Configuration of PHPUnit
- What are Assertions and how to use them
- What are Annotations and how to use them
- What are DataProviders and how to use them
- Writing tests for existing (legacy) code
€ 125,00 per person
Class format & requirements
This training course will be given on-site. Participants should have a computer pre-installed with PHP 8.x, MySQL 8.x (or similar) and optionally Apache 2.4 (or similar). Code samples and exercises will be provided during the training course.
A minimum of 4 participants is required.