Posted by Matt on Saturday July 15, 2017
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.
Posted by Matt on Sunday June 18, 2017
Inspired by something I saw a friend write in Go, I've written a small smoke testing tool in PHP.
Posted by Matt on Friday April 7, 2017
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.
Posted by Matt on Friday March 3, 2017
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.
Posted by Matt on Monday January 23, 2017
Here's a super-quick way of using the Symfony Process Component in Behat Contexts to run processes in the background.
Posted by Matt on Sunday July 10, 2016
I've been porting across one of the live demos I do (that's a Symfony project to demonstrate BDD & Behat stuff) from the built-in PHP web-server and a locally-hosted MySQL Database to a Docker configuration. I had some struggles with getting my Web UI Behat suite to work correctly inside the PHP container, here's what should be done.