PIMCORE Community Dev Days
On , I will be in Frankfurt am Main at the PIMCORE Community Dev Days. There I will give the presentation “Speed is a byproduct of trust”.
Testing a unit of code that depends on other components often raises a critical question: when should you replace real dependencies with Test Stubs or Mock Objects, and when should you allow the code under test to collaborate with actual dependencies?
In this presentation, I demystify the effective use of test stubs and mock objects in unit testing. You will gain a clear understanding of how to leverage PHPUnit's test double functionality to write robust tests, while also learning which features to avoid for better maintainability and reliability. By the end of this session, you will be equipped with practical strategies to make informed decisions about dependency handling in your tests.
I most recently presented “Testing with(out) dependencies” at SymfonyOnline on . Previous events include SymfonyCon, Symfony User Group Cologne, TYPO3 Developer Days, NEOS Conference, and International PHP Conference.
I am Sebastian Bergmann. I started writing PHPUnit in 2000 and still maintain it. In the same year I gave my first talk at a PHP conference. PHPUnit has been installed more than a billion times from Packagist, and a new major version comes out every February.
As a co-founder of The PHP Consulting Company (thePHP.cc), I work with teams on their tests: on test strategy and test design, on testable code, on fast test runs and on upgrades to current versions of PHPUnit. More on this under consulting and coaching.
Where you can meet me next is listed under events. The next dates of my training courses are in the training overview.
On , I will be in Frankfurt am Main at the PIMCORE Community Dev Days. There I will give the presentation “Speed is a byproduct of trust”.
You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.