convert tests to php form