Test Automation with PHPUnit

If you want to be sure that software works properly, you have to test it continuously. You can either do this manually, or you can automate the tests. You will learn how to integrate the tool PHPUnit, the standard for test automation in the PHP world, into your development process.

We rely on interactive live coding and discussion with the participants instead of frontal teaching with presentation slides. The transfer of knowledge alternates with demonstrations and practice using practical examples.

Learning Objectives

  • Install and configure PHPUnit
  • Writing and running automated tests
  • Test code isolated from its dependencies
  • Know and apply best practices for testing with PHPUnit

Target Audience

This training is aimed at software developers who want to automate their tests with PHPUnit.

Requirements

We recommend several months of PHP experience.

Agenda

09:00am–09:15am Welcoming, introducing and collecting expectations
09:15am–09:45am Why do we want to automate tests?
09:45am–10:30am Writing and running automated tests
10:30am–10:45am Break
10:45am–11:15am Live Demo: Install and configure the unit
11:15am–12:30pm Exercise: The first tests
12:30pm–01:30pm Lunch Break
01:30pm–02:00pm Review of the exercise
02:00pm–03:00pm Testing complex code
03:00pm–03:15pm Break
03:15pm–04:30pm Exercise: Testing multiple execution paths
04:30pm–05:00pm Review of the exercise
09:00am–09:30am Recap of previous day and questions
09:30am–10:15am Testing stateful objects
10:15am–10:30am Break
10:30am–11:00am Live Demo: How PHPUnit handles global state
11:00am–12:00pm Exercise: Testing stateful objects
12:00pm–12:30pm Review of the exercise
12:30pm–01:30pm Lunch Break
01:30pm–02:15pm Testing decoupled from dependencies
02:15pm–03:15pm Exercise: Testing decoupled from dependencies
03:15pm–03:30pm Break
03:30pm–04:00pm Review of the exercise
04:00pm–04:30pm Summary and Outlook
04:30pm–05:00pm Questions and Feedback

Exclusive and customized

We are happy to adapt the content and focus of our training courses to your specific wishes and needs.

More Information