Overview for php

PHP and OpenFaaS

There's been a couple of things recently that have got me to this point 1) Hype around serverless functions 2) My growing interest in OpenFaaS So here I am, sat in a coffee shop in central London tinkering with OpenFaaS and PHP - here's how it went.

Using SQLite with Kahlan in PHP

I've been using Kahlan for testing a bit recently, I really like the describe-it style. I had a project where I needed to write an SQLite implementation of a repository and I wanted to use Kahlan to test the implementation, here's how I did it.

Cigar: Smoke testing in PHP

Inspired by something I saw a friend write in Go, I've written a small smoke testing tool in PHP.

Page objects in Behat

When working with web pages in behat, you can use something such as Mink directly to drive the browser and navigate around the site. But with page objects, you can make things a little more re-usable, here's how.

Anonymous classes in PHP 7 are fantastic for tests

I recently found myself writing some integration tests (or whatever you'd like to call them, people will argue about terminology for hours) for an app. Anonymous classes made testing the real implementation of my interface really easy, here's how.

Behat & Symfony's Process component

Here's a super-quick way of using the Symfony Process Component in Behat Contexts to run processes in the background.