An Introduction to Stubs: Test Doubles in TDD (PHP)
Автор: The Engineering Coach
Загружено: 2019-05-21
Просмотров: 1185
Описание:
Welcome to the first part of our series on Test Doubles! As The Engineering Coach, I'll guide you through using Stubs to write better, more isolated tests. We'll be using PHP and PHPUnit, but the concepts we cover apply to any language or framework.
We'll explore why Test Doubles are essential for practicing Test-Driven Development. By replacing a class's dependencies, you can gain complete control over its behaviour, allowing you to focus on testing only the code you've written.
In this video, we'll implement our own Stubs from scratch, without a mocking framework, to give you a solid understanding of how they work under the bonnet.
The code for this series can be found on GitHub: https://github.com/the-engineering-co...
Next in the Series:
Once you've mastered Stubs, you're ready to move on. Our next video is about Spies, another powerful type of test double.
👉 Watch the next video on Spies here: • What is a Spy? A Practical Guide to Test D...
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 #TestDoubles #Stub #TestDrivenDevelopment #TheEngineeringCoach #CodingCoach
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: