https://github.com/phpspec is a great testing utility. Already added a feature myself: https://github.com/phpspec/prophecy/pull/160