PHP unit testing: using Mockery to mock a dependency that doesn't exist yet

preview_player
Показать описание

We use test doubles to isolate the class we're testing, so we can test it without any reliance on external dependencies. Sometimes we want to write and test a class before its dependencies exist. In this video you'll learn how to mock a non-existent class using Mockery alongside PHPUnit.
Рекомендации по теме
Комментарии
Автор

I can not understand what the difference between testing this method using mockery and the previous way in last video using get mockBuiulder? please explain the difference for me.

karmnshawki
Автор

thank you. What Im a bit struggling with is what that is actually good for. Whats the point of all of this?

Jossnaz
join shbcf.ru