gielberkers.com
Regexes for quickly mocking stuff - Giel Berkers dot com
This is a small collection of regular expressions to find pieces of code and replace them with PHPUnit mocks. It’s useful for copy/pasting existing pieces of code (a constructor signature for example) and transforming them into usefull code for mocking in PHPUnit, without having to type everything out. Disclaimer: some small code formatting might be …