Mocking 101 @ PHPUGHH
Am 14.04.15 trifft sich die PHP Usergroup Hamburg bei der Xing AG.
Ich bin mit einem kleinen Talk über Mocking und Stubbing in PHP dabei, der aus der Arbeit an Mokka entstanden ist:
If you write unit tests, you use mocks and stubs in order to isolate your tested code from dependencies you don't want to test along with it. Most PHP developers use the mocking framework that comes with PHPUnit without really bothering what exactly a mock is and how it works, or what differentiates a mock from a stub.
In this talk you will learn how mocking and stubbing usually works in PHP and why it can be a good idea to look at other mocking frameworks or to even build your own.
Vielleicht sehen wir uns?