>_ phpunit.expert

Interactive online training

Test-Driven Security

A security vulnerability is a missing test. Learn how to find weaknesses, reproduce them as a red PHPUnit test, and secure them green. Directly from the creator of PHPUnit.

Online via Zoom Live & interactive
4 sessions 2 hours each
PHP & PHPUnit Hands-on, no slide marathon
799 EUR included in the flat rate

The idea

Do not scan. Test.

Security scanners deliver lists. This training delivers a habit: you treat every security requirement like every other functional requirement, as an executable test. The “flag” here is not proof of a break-in, but a green test that prevents all future break-ins of the same kind.

You work in a deliberately vulnerable, realistic PHP application. The vulnerabilities look like real development mistakes: forgotten escaping, string concatenation in SQL, a missing authorisation check. No framework hides them.

The cycle

Three steps per vulnerability

Every vulnerability becomes a “station”. At each station you go through the same three-step cycle: the pattern that stays with you in your daily work afterwards.

01

Capture the flag

Find and exploit the vulnerability by hand, to really understand the attack vector.

02

Reproduce

Express the security requirement as a PHPUnit test. Against the vulnerable code it is red.

phpunit → FAILED
03

Fix & secure

Change the code until the test is green. It stays as regression protection.

phpunit → OK

Who it is for

Experienced PHP developers

What you take away

  • A reusable pattern: security requirement = test
  • Confidently recognising the most common classes of vulnerability in your own code
  • Choosing the right test level: a unit test when the vulnerability sits in one class, or an integration test when it only arises at the application boundary
  • A collection of security tests as regression protection that you can adapt directly

What you bring

  • Solid PHP knowledge and experience with object-oriented code
  • You have written tests with PHPUnit before
  • A local environment with PHP and Composer
  • Curiosity about the attacker's perspective; prior knowledge of security is not required

Your trainer

Sebastian Bergmann

Sebastian Bergmann

Sebastian is the creator of PHPUnit, the de facto standard for testing PHP code. As a consultant, trainer, and co-founder of thePHP.cc he has been helping teams build maintainable, well-tested software for more than two decades.

In this training he does not walk you through slides, but through real vulnerable code. You learn how an exploit becomes a test that stays.

Sebastian Bergmann explaining a concept in front of a flip chart
Live and in dialogue: Sebastian at a workshop. Photo: Filip Kovačević

Registration

799 EUR per person

Four interactive live sessions of two hours each, as a Zoom meeting. Small group, real code, your questions.