Session

PHPUnit In 4 parts (workshop)

In the past 9 years, I’m using PHPUnit on a regular base. Now it's time to help others.

In this workshop, we'll start with the basics and go through 4 parts of writing tests using PHPUnit.
- Part 1: Unit Testing
- Part 2: Integration Testing
- Part 3: Acceptance Testing
- Part 4: Smoke Testing

After learning about the 4 different use cases there is enough time for getting your hands dirty. I'll bring some example code you can cover with tests during the do it yourself block.

After this workshop, you'll have a good understanding of all 4 types of tests, how they should be structured and in which cases they are used. On top, you'll get some examples and exercises for each type so you can stay curious and keep learning after the conference.

## What you will learn from this talk
- How to conceptually separate between the 4 types.
- When to Mock which part of the code.
- How to use PHPUnit extensions like vfs.
- What SmokeTests are and how to set them up using PHPUnit.

## Why should you accept this workshop
This is a completely new workshop based on my same-named talk. In this workshop, I’d like to give people space and a secure environment to learn about the testing of code. On top, I’d like to show them how to separate properly between the different kinds of tests. I would prepare even more code samples in a GitHub repository including docker files for each part. This workshop will include as well mocking and how to use other PHPUnit extensions like vfs.

Sebastian Thoss

better ventures group GmbH, Chapter Lead Backend Development

Hamburg, Germany

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top