logo
Mocking Classes With Real Time Facades

Mocking Classes With Real Time Facades

In PHP, particularly within frameworks like Laravel, facades provide a static-like interface to classes available in the service container. Here, we delve into the concept of real-time facades, which allow you to treat any class in your application as if it were a facade, enhancing your ability to mock dependencies for testing.
2 minutes to read
Testing with Fake HTTP Requests in Laravel

Testing with Fake HTTP Requests in Laravel

In Laravel, one of the powerful tools for testing is the ability to simulate HTTP responses without actually hitting an external API. This is particularly useful when you need to ensure your application behaves correctly regardless of the API’s response.
2 minutes to read