Skip to content

Commit

Permalink
Fix Issue there4#34: Testing 'Internal Server Error (500)'
Browse files Browse the repository at this point in the history
  • Loading branch information
Starli0n committed Sep 2, 2016
1 parent 0c5981e commit f25786b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/There4/Slim/Test/WebTestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ private function request($method, $path, $data = array(), $optionalHeaders = arr
$this->request = new Request($method, $uri, $headers, $cookies, $serverParams, $body);
$response = new Response();

// Invoke request
// Process request
$app = $this->app;
$this->response = $app($this->request, $response);
$this->response = $app->process($this->request, $response);

// Return the application output.
return (string)$this->response->getBody();
Expand Down

0 comments on commit f25786b

Please sign in to comment.