Analysis of two-phase regression has traditionally been carried out using a variety of likelihood approaches. In this paper we present an alternative procedure based on a goodness of fit criterion. Exact hypothesis tests for a known switch point are developed. Approximate (conservative) tests for an unknown switch point are also obtained