Mastering Mocks: Your Guide to TDD and Test Doubles in PHP
Автор: The Engineering Coach
Загружено: 2019-06-27
Просмотров: 408
Описание:
Welcome to the third part of our series on Test Doubles! I'm your Coding Coach, and in this video, we'll master Mocks. You'll learn how to implement them in PHP and why they're a crucial tool for writing tests that verify the behaviour of your classes.
Mocks are a powerful type of Test Double that not only lets you control dependencies but also allows you to assert that your code interacts with them in a specific way. This is essential for ensuring your application's behaviour is exactly as you intend. We'll be using PHPUnit to drive our development.
The code for this series can be found on GitHub: https://github.com/the-engineering-co...
Previous in the Series:
If you missed them, be sure to check out the previous videos in this series:
👉 Watch the video on Stubs here: • An Introduction to Stubs: Test Doubles in ...
👉 Watch the video on Spies here: • What is a Spy? A Practical Guide to Test D...
Next in the Series:
Ready for the final step? Our next video is about Fakes, the last of the test doubles we'll be covering in this series.
👉 Watch the next video on Fakes here: • Fake It 'til You Make It: A Practical Guid...
Let's Connect
For more software engineering tutorials and coaching, subscribe to The Engineering Coach on YouTube. You can also connect with me on Bluesky or Mastodon.
Mastodon: https://mastodon.social/@braddle
Bluesky: https://bsky.app/profile/braddle1.bsk...
LinkedIn: / mark-bradley-engineering-coach
#TDD #PHP #Mocks #TestDoubles #TestDrivenDevelopment #TheEngineeringCoach #CodingCoach
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: