else { // getStatusCode() throws for empty codes
try { $response->
getStatusCode();
} catch (HTTPException
$e) { // If no code has been set then assume success
$response->
setStatusCode(200
);
} } // Create the result and add the Request for reference
return (new TestResponse($response))->
setRequest($this->request
);
} /**
* Set controller's config, with method chaining.
*
* @param mixed $appConfig
*
* @return $this
*/
public function withConfig($appConfig) {