Brian Zwahr will present: Freeing Your Fakes: Decoupling Fake Objects From Tests.
Although many people use mocks in their unit tests, mocks are only one type of fake object. Sometimes, when you first start writing a test, you don't necessarily know which type of fake you want to use. Alternatively, you may decide to switch mocking frameworks down the line. Changing between different fakes or mocking frameworks can be a real hassle unless your fakes are decoupled from your tests.
In this talk we will discuss a method of decoupling test fakes from unit tests. After a quick refresher on fakes and mocks, we will take a look at how Joshua Bloch's builder pattern works and how it can be used to decouple tests from their fakes, starting conceptually followed by specific PHP examples.