Category: testing

Slow running tests are a bug – they stop you from doing as much as you can with your code, & its quality. Spend a little time working on making your tests better, clearer, and faster – and you’ll reap …

Speeding up your tests, and also your code coverage! Read More »

A recent post showed how to setup Code Tombstones¬†– but there are other , even more insidious pieces of code in a project. The code you know you aren’t using now, but you wrote ahead of time – because ¬†you …

Improve your code coverage percentage – delete code! Read More »

One of the advantages of a side-project is that you can be a little extra passionate about getting things just right. If you want to increase code coverage because you think that it’s good, you can – after all, it’s …

Replacing @expectedException with $this->expectException() Read More »

Having just watched Sebastian Bergmann’s “The State of PHPUnit” presentation from Fosdem 2015, I was inspired to install and test a project of mine with the latest stable PHPUnit – v4.7. It was easily installed on the command line. composer …

Upgrading PHPunit – fixing PHPUnit_Util_DeprecatedFeature_Logger Read More »

Tagged with: ,