how early

how early can you take a pregnancy test?? I'm 6 days away from my period but I'm having symptoms