Alejandro Celaya | Blog

Software development, agile methodologies and open source software.

tag Archive — "phpunit"

— 2022 —

Capturing remote code coverage in API tests with PHPUnit

Capturing code coverage for a test suite is a very useful way to know which parts of your source code are actually getting executed by tests. This is useful not only to know if you need to add more tests to your project (in case the coverage is too low), but also, if you want to apply technics like …

— 2018 —

Mutation testing with infection in big PHP projects

There's no doubt that having tests in a project allows you to find potential bugs earlier and more easily. Lots of OSS projects require a minimum code coverage in order to accept new pull requests from contributors, and proprietary projects also tend to have some sort of continuous integration workf…

— 2017 —

Run PHPUnit tests inside a docker container from PhpStorm

Docker is, without any doubt, the trending tool these days. Everybody wants to use it, because it is very useful, allowing to easily generate development environments for any kind of application. A couple months ago I started working with docker myself (it has taken me a while, I know), and now I ca…

— 2014 —

Unit testing Zend Framework 2 modules

One of the first articles I wrote in this blog was an introduction to unit testing PHP applications. You can find it here in case you need to know the first steps and the theory. On this article I'm going to explain how to get a Zend Framework 2 module tested. It is indeed very similar to test any P…

Introduction to PHP unit testing with PHPUnit

Nowadays we are in the era of agile methodologies. One of the best practices promoted by these methodologies is Test-Driven Development (TDD) It mainly consists on preparing small pieces of code that are responsible for testing parts of the real application. For this purpose each of the main program…


Older postsNewer posts