Period&testing

Laura.
Early hours of this morning I had to get a doctor out to see me due to the pain I was experiencing, he took a pregnancy test and it came up negative but I'm not due on my period for another week, was just wondering if this can be a reliable result or not and when would be best to test?