Pre-commit hook in Git: Running PHPUnit

Pre-commit hooks in git are one of those things you hardly think about but can help you automate tasks and do last-minute checks. A good example of this is running unit tests before commits, to make sure nothing broke; or checking your files using PHP_CodeSniffer. With [DocBlox][1] I use them to run my unit tests [...]

Multiple types of opening braces when matching pairs with the tokenizer/ext

Whilst I was testing DocBlox on the Solar Framework I found a bug in the part of the application where I match the curly brace pairs of structures (like classes, functions, methods, etc). Every time a variable was imported in a string using the {$var} notation my algorithm thought that the function/method had ended at the [...]

Using Symfony’s Lime in phpUnderControl

Do you know phpUnderControl? Do you know and use Lime? If you answered ‘Yes’ to the questions above then you will likely have tried to integrate Lime into phpUnderControl. So have I.. What I discovered was that there are 3 ways in which this problem can be solved. Use Lime’s xUnit output mechanism, only available [...]