Category: Dev

How To Write Tests For Laravel Apps in PHP

There’s surprisingly little out there (that I could find) about writing tests for Laravel applications. Of course, there’s the Laravel documentation, but in many cases I have found it to be either not detailed enough, or in a very counter-intuitive order. I would have really liked more examples. So here are some of my own.…

continue reading

The Flaw In Test Driven Design

In software engineering, the concept of test driven design works as follows: Step 1. Write a test, for example, “when we load a a particular URL, we expect there to be a page there”. That’s a pretty simple test. In PHPUnit, it would look like this. Step 2. Write the code to make the test…

continue reading