How to use Mockery to test your Laravel/PHP code?

preview_player
Показать описание
In this video we will se what problems we face when we try to test a code block that calls another external API or something that we don't want to execute.

In our test, we want to make sure, that code is being executed, but we don't want to execute that call while running the test.

This is not an extensive video about all the features of Mockery but in this vedio we explain the basic idea behind Mocking classes.

After watching this vdeo, it's expected that you will know and understand when and how to use Mocking libraries like Mockery.

Peace
Happy Coding!
Рекомендации по теме
Комментарии
Автор

I finally understand why mocking is so important in testing. Amazing vedio

userxr