Split PHP into test and lib.