When I call triggerReadyStateChange, mock_xml_http_request will call responseHandler and change the status. So, I think it already did.