The Symfony (PHP) framework now does this. Code and config examples in the docs have automated regression tests.