Blog


November 10, 2020

Few use cases for PHPUnit's data providers

What are they? Martin Hujer [Tighten's blog post] (https://tighten.co/blog/tidying-up-your-phpunit-tests-with-data-providers/) A neat feature that data providers offer is adding text as an...

Read

September 28, 2020

How to test global scopes in Laravel?

Today I'll share some hopefully useful ideas for testing global scope classes in Laravel borrowing code from a real-life example from the open-source project of mine called laravellte. I use an...

Read

September 2, 2020

Are attribute casting tests worth the hassle?

Among others, Laravel offers a neat feature where model's attributes are cast to desired cast types. Although I follow the Laravel community regularly, I've never come across an article that would...

Read

August 31, 2020

Gain more confidence when testing traits

In my one of more recent articles that I wrote on LinkedIn, I presented how to test PHP traits in tow steps. But something was missing. The test assured us that trait is imported into the class. But...

Read