Answer:
Yes. In a phantom pregnancy, the body is tricked into feeling like it is pregnant. Consequently the same hormones present in a real pregnancy will be present in the body of someone who is undergoing a phantom pregnancy, and these hormones are what a pregnancy test detects.