How to gradually upgrade toward PHPUnit 6 with namespaced classes

In the latest months I wrote multiple times, in different projects, code migrating PHPUnit toward major version 6. This upgrade is harder than the previous one, since in this version it was introduced a big breaking change: all classes got (finally!) namespaced.

This means that any usage of those classes in your project needs to be updated. It may seem a simple find & replace job, but since you need to introduce at least one use PHPUnit\Framework\TestCase line at the top of each one of your test classes, it’s a boring and a little more than trivial task; also, upgrading it in a single big jump may not be feasible or prudent, especially in the case of open source or distributed libraries, where backward compatibility and support for old PHP versions must be ensured.

Paraunit 0.10: small fixes and improvements

With this release, I’m grouping a few fixes and improvements that I collected in the past month. Mainly, I’ve fixed the --debug option and the --text-to-console coverage output. Also, now the logo is optional, and at the end of each line it’s printed a partial count of executed tests.

Paraunit 0.9.1: a small fix in the header

Paraunit 0.9.1 has been released with a really small improvement: I wnated to show a pretty, short version string in the header, when launching Paraunit. I recently started using Ocramius’ package to do it, but it didn’t provide that feature, and he was adamant about not implementing it in the future.