Testing collaborating objects

How do we handle code dependencies when testing? Here you will learn everything about test stubs and mock objects.

  • Isolation of the code to be tested from its dependencies
  • Testing communication between objects
  • Best practices for using test doubles
Testing collaborating objects

You won't find a more in-depth insight into the use of PHPUnit than from the developer himself. The training courses are always excellent!

A participant in another training in this series in 2025

Testing collaborating objects

You want to test code that depends on other code. When should you replace the real dependencies with test stubs or mock objects? When should the code under test work with its real dependencies, and when should it not?

Here you will learn about the advantages and disadvantages of test stubs and mock objects. Afterwards, you will understand how PHPUnit's test double functionality works and which parts you should steer clear of.

Tester's Corner

If you want to be sure that software works properly, you have to test it continuously. Tools such as PHPUnit are constantly being improved, as are best practices for their use.

It doesn't matter whether you already have many years of experience testing PHP software with PHPUnit or are just getting started in the world of testing, for example in our training courses Test Automation with PHPUnit or Advanced PHPUnit: When it comes to testing software, there is always something new to learn and old patterns to rethink.

In Tester's Corner, we concisely cover a topic related to automated software testing every month.

From the Contents

  • Isolation of the code to be tested from its dependencies
  • Testing communication between objects
  • Best practices for using test doubles

Who should participate?

Tester's Corner is aimed at all developers who test their software with PHPUnit. Whether you are a beginner or an experienced user of PHPUnit, there is always something new to learn here.

Are there requirements for participation?

Prerequisites are (at least initial) practical experience with PHPUnit and knowledge of object-oriented programming in PHP. The necessary basics are taught in the training courses Test Automation with PHPUnit and OOP Done Right.

What this training offers you

  • Understand PHPUnit, from the basics to advanced problem solving
  • Gain comprehensive knowledge of lesser-known features and techniques
  • Continuously optimise your test strategy to adapt it to new requirements.

Secure your spot

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

Testing collaborating objects 🇬🇧

Duration: 45 minutes

20 Jul 2026, 04:00pm-04:45pm (CEST)

99 €
Book for 99 €

Testing collaborating objects 🇬🇧 🇩🇪

Duration: 1-2 hours

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

from 450 €
Your desired date online (Zoom) Sebastian Bergmann
Start free consultation on online training →

Testing collaborating objects 🇬🇧 🇩🇪

Duration: 1 day (with additional topics)

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

from 3000 €
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.