Archive for the ‘Testing’ Category

Re-Introducing PHPUnit – Getting Started with TDD in PHP

Posted on: No Comments
There are a lot of PHPUnit posts on our site already (just check the tag), but it's been a while since we've actually introduced people to it, and the tool has evolved significantly since then. This article aims to re-introduce the tool in a modern way...

How to Write JavaScript-Style Test Watchers in PHP

Posted on: No Comments
I didn't start out writing tests for my code. Like many before and since, my "testing" was to write code and refresh the page. "Does it look right?", I'd ask myself. If I thought so, I'd move on. In fact, most of the jobs I've had have been with compan...

8 Must Have PHP Quality Assurance Tools

Posted on: No Comments
For shipping quality code, we must have testing in mind while coding (if not doing TDD). However, with the wide range of PHP testing tools out there, it's hard to make a choice! Exploring PHP is a fun adventure (premium course on that here!) but it's h...

Poka Yoke – Saving Projects with Hyper-Defensive Programming

Posted on: No Comments
When working in a medium to large team on the same codebase, it can sometimes become hard to understand each other's code and how to use it. Various solutions exist to help with this. For example, you can agree to follow a set of coding standards to ma...

BDD in JavaScript: Getting Started with Cucumber and Gherkin

By now, everyone has heard about Test Driven Development (TDD), and the benefits that this can have on your product and your development lifecycle. It's a no-brainer really. Every time you write a test for a piece of code, you know that code works. An...

What Is Snapshot Testing, and Is It Viable in PHP?

Posted on: No Comments
Ah-ha moments are beautiful and rare in programming. Every so often, we're fortunate enough to discover some trick or facet of a system that forever changes how we think of it. For me, that's what snapshot testing is. You probably write a lot of PHP c...

Functional Programming with Phunkie: Building a PHP JSON Parser

Posted on: No Comments
Phunkie is a library with functional structures for PHP. In this two-part tutorial, Phunkie’s creator Marcello Duarte, head of training at Inviqa, explains how to create Parser combinators using the functional library. This post first appeared on the...

Web App Performance Testing with Siege – Plan, Test, Learn

Posted on: No Comments
Building a simple web application today isn’t that hard. The web development community is friendly, and there are lots of discussions on Stack Overflow or similar platforms, and various sites with lessons and tutorials. Almost anyone can build an ap...

A Guide to Testing and Debugging Node Applications

Posted on: No Comments
A Guide to Testing and Debugging Node Applications — is an excerpt from Manning's Testing Node Applications. Thoroughly revised in its second edition, this book guides you through all the features, techniques, and concepts you'll need to build produc...