code tests for php