Tag Archives: phpunit

PHPUnit: Closures as dataProviders help with repetitive code

Since PHP5.3 we have closures. The concept behind closures is unbelievably powerful, and even though PHP has struggled with the concept of typing, callables and whatnot, the main concept of closures remains: passing logic in stead of data, or even: as if it were data. In my previous post I argued that functional and declarative […]

Posted in Development | Also tagged | Leave a comment