Advanced PHPUnit

Your tests are slow, flaky, or hard to understand? Learn proven strategies to systematically solve these problems.

  • Make slow tests fast: by isolating database access, file I/O, and other side effects
  • Eliminate flaky tests: through proper test isolation and the right use of test doubles
  • Use code coverage as a tool: not as a goal, but as a compass for finding untested code
Advanced PHPUnit

Advanced PHPUnit

Are your tests slow because they hit the database or the file system? Do you have flaky tests that are green one moment and red the next, without anything having changed? Or are your tests so hard to understand that nobody dares to touch them?

This training teaches you proven strategies to systematically solve exactly these problems. You will learn how to isolate dependencies with PHPUnit, use test doubles correctly, and leverage code coverage as a tool rather than an end in itself.

From the Contents

  • Test isolation: Why shared fixtures and missing isolation lead to flaky tests, and how to prevent it
  • Testing collaborating objects: Verifying communication between objects with precision
  • Using test doubles correctly: When a test stub is enough and when you actually need a mock object
  • Taming I/O: Testing database access, file system operations, e-mail, and other side effects cleanly
  • Code coverage as a compass: Interpreting reports correctly, setting meaningful targets, and understanding what coverage really tells you
  • Identifying and fixing risky tests: What PHPUnit tells you about the quality of your tests
  • Writing readable tests: Eliminating mystery guests, cryptic assertions, and other barriers to comprehension
  • Speeding up slow test suites: Strategies for faster execution in real-world projects

Who should participate?

This training is for developers who already use PHPUnit but are struggling with slow, flaky, or hard-to-maintain tests. If your test suite feels like it is holding you back rather than having your back, this is for you.

Are there requirements for participation?

Prerequisites are practical experience with PHPUnit and knowledge of object-oriented programming in PHP. The necessary basics are taught in Test Automation with PHPUnit.

What this training offers you

  • Concrete solutions for the most common testing problems in real-world projects
  • A clear understanding of test isolation, test doubles, and when to use which
  • Strategies for using code coverage effectively and finding untested code with precision
  • Faster, more stable, and more readable tests, and the knowledge to keep them that way

Secure your spot

Start now by registering – or book a free consultation to customise this session for you.

Advanced PHPUnit πŸ‡¬πŸ‡§

Duration: 12 hours

3, 8, 12, 15, 17 and 19 June 2026, 10:00-12:00 (CEST)

Registration until: May 20, 2026

1199 €
Book for 1199 €

PHPUnit fΓΌr Fortgeschrittene πŸ‡©πŸ‡ͺ

Dauer: 12 Stunden

14., 16., 18., 21., 23. und 25. September 2026, jeweils 10:00-12:00 (MESZ)

Anmeldefrist: 31. Aug. 2026

1199 €
FΓΌr 1199 € buchen

Advanced PHPUnit πŸ‡¬πŸ‡§

Duration: 12 hours

7, 9, 11, 14, 16 and 18 December 2026, 10:00-12:00 (CET)

Registration until: Nov 23, 2026

1199 €
Book for 1199 €

Advanced PHPUnit πŸ‡¬πŸ‡§

Duration: 12 hours

Expected in June 2027. We will be happy to notify you as soon as we have set the dates.

1199 €
online (Zoom) Sebastian Bergmann
Let me know β†’

PHPUnit fΓΌr Fortgeschrittene πŸ‡©πŸ‡ͺ

Dauer: 12 Stunden

Expected in September 2027. We will be happy to notify you as soon as we have set the dates.

1199 €
online (Zoom) Sebastian Bergmann
Let me know β†’

Advanced PHPUnit πŸ‡¬πŸ‡§

Duration: 12 hours

Expected in December 2027. We will be happy to notify you as soon as we have set the dates.

1199 €
online (Zoom) Sebastian Bergmann
Let me know β†’

Advanced PHPUnit πŸ‡¬πŸ‡§ πŸ‡©πŸ‡ͺ

Duration: 2-3 days

Your preferred date, any number of participants. Either in Zoom or using your preferred video conferencing software.

from 4500 €
Your desired date online (Zoom) Sebastian Bergmann
Start free consultation on online training β†’

Advanced PHPUnit πŸ‡¬πŸ‡§ πŸ‡©πŸ‡ͺ

Duration: 2-3 days

Your preferred date, any number of participants. At your company or at your desired location.

from 5500 €
Your desired date Any location Sebastian Bergmann
Start free consultation on inhouse training β†’
Credits allow discounted access to our training courses. Learn More
Easy access to all our training courses for a monthly fixed fee. Learn More

Frequently Asked Questions

Why are there no full-day online courses?
Our content is designed for optimal online learning: Short, focused sessions promote concentration and provide time to process what has been learned between units.
Are the training sessions live or recorded?
All our training courses take place live as a video conference and are led by an experienced trainer. Participants can ask questions at any time.
What makes your training courses unique?
Our training courses combine hands-on tasks with live coding and solving real-life problems. Our experienced trainers guarantee a particularly good learning experience.
Are your training courses remote or in-person?
We offer our training courses both remotely and in person in order to meet the different requirements of our customers.
Can you tailor training courses specifically to our needs?
Naturally. We can customise our training courses to the individual needs of teams and their technology stacks at any time.
What advantages do individualised training courses offer?
In-house training courses allow you to arrange individual topics, flexible dates and guarantee targeted learning in a familiar environment. This is usually financially viable for four or more participants.
Is there a certification?
Yes, participants will receive a certificate on request after successful participation.