If ϕ(x1,…,xn)=1, reject H0 If ϕ(x1,…,xn)=0, do not reject H0
ϕ(x1,…,xn)∼Bernoulli(p), E(ϕ(x1,…,xn))=p