fix for #10 collision of phpName during buildtime + tests

Attached the fix + tests.