gwa's avatar
Level 3

Run user generated Code secur through unit tests

On our Website, I want to make it possible to create easy coding tests for new Candidates. So the basic idea is to make it possible for Candidates to write some PHP Code in a Text input ... And I want it to go through PHP Unite Tests. Is there a best praxis or even a Package, to support this and to make it secure?

0 likes
1 reply
Vilfago's avatar

Like PHP tester, request for non-breaking code :) http://phptester.net/

Otherwise, I think a white list of function, and a slow "max execution time" should do the job.

Please or to participate in this conversation.