PHPNW14

Design How Your Objects Talk to Each Other Through Mocking

What should you test with your unit tests? Some people will say that unit behaviour is best tested through it’s outcomes. But what if communication between units itself is more important than the results of it? This session will introduce you to two different ways of unit-testing and show you a way to assert your object behaviours through their communications.