Tag Archives: mysql

Loading MySQL data for phpunit testing

I’d been bugged for a while because when I was writing phpunit tests for some of my code, I couldn’t find a tidy way of pre-loading data into a MySQL database for testing against. Everything I came up with seemed … Continue reading

Posted in Computing | Tagged , , , | Leave a comment

Searching for the longest match with MySQL

I’ve been involved with Carbon Guerrilla, a project to allow organisations to manage and track their CO2 emissions for some time now. Yesterday I was working on some code to allow people to compare emissions across locations by re-basing emissions … Continue reading

Posted in Computing | Tagged , | Leave a comment