Overview for 'davedevelopment'

In defence of Mocking Frameworks

Written by Dave Marshall / Original link on May. 14, 2020

Recently Frank de Jonge published a blog post on Testing without mocking frameworks, it's a good read and a well thought out post, but there are a few things I disagree with. This post will be my commentary, you might want to read Frank's post first. I do have some skin in the game here, I'm one of…

Using closures as PHPUnit After Hooks

Written by Dave Marshall / Original link on Dec. 22, 2016

Not sure why I didn't start doing this sooner. We have a basic Feature toggle system that is maintained in the global scope to make it easily accessible to any part of the code: Feature::isEnabled("something_awesome"); I needed to force a particular feature on in a PHPUnit integration test, but in…