Aller au contenu
AFUP AFUP Day 2025 Baromètre Planète PHP PUFA
 

Design how your objects talk to each other through mocking

Description

 

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.

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.

Conférence donnée lors du Forum 2014, ayant eu lieu les 23 et 24 octobre 2014.

Informations complémentaires

Vidéo

Le speaker

Konstantin KUDRYASHOV

Konstantin is a developer that through care, tools and methodologies got really deep into the agile business analysis. In the daytime he is a BDD practice manager at Inviqa Ltd. His job is an ongoing work of bringing agile processes to the projects across the world through bridging communication and understanding gaps between businesses and tech. In the night he is contributor to Symfony2, Composer, Doctrine and creator of the most known BDD tools for PHP community such as Behat, Mink, Prophecy and PhpSpec2.

Commentaires

Great great conference ! I learned at lot, I will try to apply your advise. Thanks
Anonyme, le 24/10/2014
As I said on Twitter, it's like a live episode of Elephant in the Room :-) It was a pleasure to see you in person. Your talks (and podcasts) are very clever in a way that you always expose an interesting global issue, go deep in your explanations, and always display a code chuck to identify the main aspects of what's you're talking about. Understanding complex problem with such an approach is really comfortable. I really would like to thank you for your involvement in the community and the great tools you've created so far. I think that over the years, you definitely push the PHP testing world to the next level, and everybody should thank you for that. I hope we'll see you soon again in France.
Sylvain Mauduit, le 24/10/2014
one of the best talks. Fluent and clear :)
Florian Klein, le 25/10/2014
Now this is what people need to see more often! An excelent explanation of how tests can help you design more SOLID code while focusing on messaging. Very good slides, full of clear code and well paced talk. Keep up the good work, you help a lot of people.
Nelson da Costa, le 25/10/2014
Very good talk! I was worried when you started because it felt like it could end up being pretty boring, especially given the complexity of the talk. But no, your code examples and test doubles definitions where so great that everything flowed flawlessly. I probably learnt the most things in here and it resonated very well with things I'm working on right now. Funny to see how respecting the S.O.L.I.D principles helps you build better test doubles and how building better test doubles help you respect the S.O.L.I.D principles.
Nicolas, le 26/10/2014
It's hard to understand your speaking ! But that was awesome, it's definitively one of the best talks.
Maxime Veber, le 27/10/2014
The GOOS book will be mine :P Thank you so much!
Thierry Marianne, le 27/10/2014