/** * Test if the http status code is used from the predefined response. * * @return void */ public function testResponsePreparalSetsStatusCodeOfGivenResponseObject() { $request = Request::create('/v1/foo', 'GET'); $response = Response::create('test', 204); $prepared = $this->invokeMethod($this->router, 'prepareResponse', [$request, $response]); $this->assertEquals($response->getStatusCode(), $prepared->getStatusCode()); }