Parser + rewrite test using PHPUnit