Posts marked with “unit testing”
Treasures, Old & New – May 2018
Writing clean code, managing technical debt, testing with Mockery, Toxic Tech, API specifications, and more.
Easier Mocking with Mockery, Part 2
In part one, we laid the practical groundwork for using test doubles. Let’s explore the parts of Mockery that, in some cases, exit the realm of everyday usage and see how it can help us in dealing with scenarios we might have thought impossible to test like static method calls, spying on objects, and more.
Testing in Practice – April 2018
PHP Unit, Mockery, Type Hints, Async PHP, building a REST API, training programs, PHP isolation and security, serverless computing, Laravel auth, and more.
PHPUnit Worst Practices
I’ve been working with PHPUnit a lot, probably since 2007. Unit testing and automatic testing in general is important, and it becomes even more important when it comes to team play. Unfortunately, in different teams that I have worked in, I often observed a situation when tests don’t receive all the attention they deserve, sometimes […]
Testing in Practice – April 2018
You can get pretty far without automated testing of your code. I should know, I was slow in adopting it as part of my day to day workflow. The truth is, automated testing ends up speeding up your workflow and its an investment. When you can have a computer, which is built to do routine […]
Blueprints for Success – January 2017
We have a new issue of the magazine to ring in the new year! This issue collects articles to help you plan and make your application and code better. These may be well-known design patterns, fundamental concepts, or novel applications of a familiar tool.
December 2016 – Scrutinizing Your Tests
The twelfth issue of 2016 is now available! This month we look at how to write good tests with Behat and using Test Driven Development. This issue also includes articles on using HTTPlug to decouple your HTTP Client, Decoupled Blocks with Drupal and JavaScript. Our columnists have articles on writing a Chat bot, advice on […]
CodeWorks 2010 Slides
If you’ve been following along the last couple months, you know that a number of us were recently on the CodeWorks 2010 tour. In ten days we hit five cities and met user groups all over the place. All in all, it was a blast – we all have writeups coming – but you’re not here for our analysis.. you’re hear for our slides.