PHP renderer generator: added custom representation + tests