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

Опубликовано: 28 Сентябрь 2024
на канале: Imranic Show
3,135
80

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!