Here I share thoughts, ideas, and experience from building web applications, improving business workflows, and delivering software that holds up over time.
Prologue When testing 3rd party API call (dealing with external resources), one of the problems is that those tests are slow. One of the solutions is to use fake classes. On the outside, the fake clas...
Intro Let's have a shamefully simple class like this: <?PHP namespace App; class Example { public function handle() { throw new \Exception('Not Found', 404); } } Back in the...
Intro Basecamp released a new tool called Hotwire that helps build new modern SPA like web apps without much javascript. It is a backend framework agnostic. Hotwire is an alternative approach to...
Intro According to Laravel News: Testing Mailable Content in Laravel 8 few additional methods for testing mailable were added to Laravel 8.18.0. Those are: 1. assertSeeInHtml; 2. assertDontSeeInHtml...