How to mock MySQLi when unit testing with PHPUnit
PHPUnit is the most used unit testing framework for PHP. Today I wanted to unit test some PHP code that relies on MySQLi. The dilemma is that you either need an actual database and load a fixture or...
View ArticleRefactoring, upgrading and other software maintenance
In 1976, Lientz and Swanson categorized software maintenance activities into four classes (from Wikipedia): Corrective: diagnosing and fixing errors, possibly ones found by users Perfective:...
View ArticleJenkins & The Continuous Integration Game
Jeff Atwood writes about The Gamification and he states that there is “… a long, rich history of programmers as gamers“. He writes that programmers want “…to move beyond being a mere player and change...
View ArticleContinuous Integration for Symfony2 using Jenkins
Today I will show how to set up Continuous Integration (CI) for Symfony2 using Jenkins and the PHP-template for Jenkins jobs by Sebastian Bergmann. This configuration works successfully with Symfony...
View ArticleHow to mock MySQLi when unit testing with PHPUnit
PHPUnit is the most used unit testing framework for PHP. Today I wanted to unit test some PHP code that relies on MySQLi. The dilemma is that you either need an actual database and load a fixture or...
View ArticleRefactoring, upgrading and other software maintenance
In 1976, Lientz and Swanson categorized software maintenance activities into four classes (from Wikipedia): Corrective: diagnosing and fixing errors, possibly ones found by users Perfective:...
View ArticleJenkins & The Continuous Integration Game
Jeff Atwood writes about The Gamification and he states that there is “… a long, rich history of programmers as gamers“. He writes that programmers want “…to move beyond being a mere player and change...
View ArticleContinuous Integration for Symfony2 using Jenkins
Today I will show how to set up Continuous Integration (CI) for Symfony2 using Jenkins and the PHP-template for Jenkins jobs by Sebastian Bergmann. This configuration works successfully with Symfony...
View Article