Run user generated Code secur through unit tests

Published 3 weeks ago by gwa

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?


Like PHP tester, request for non-breaking code :)

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

Please sign in or create an account to participate in this conversation.