Skip to content

Commit

Permalink
Merge pull request #6 from zachlm/master
Browse files Browse the repository at this point in the history
Correct phpdoc return comments
  • Loading branch information
albertcht authored Sep 30, 2018
2 parents 056c218 + 8fd3941 commit 72132b6
Showing 1 changed file with 57 additions and 57 deletions.
114 changes: 57 additions & 57 deletions src/Concerns/MakesHttpRequests.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace AlbertCht\Lumen\Testing\Concerns;;
namespace AlbertCht\Lumen\Testing\Concerns;

use AlbertCht\Lumen\Testing\TestResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
use Symfony\Component\HttpFoundation\File\UploadedFile as SymfonyUploadedFile;
use Illuminate\Http\Request;
use AlbertCht\Lumen\Testing\TestResponse;
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
use Symfony\Component\HttpFoundation\File\UploadedFile as SymfonyUploadedFile;

trait MakesHttpRequests
{
Expand Down Expand Up @@ -156,9 +156,9 @@ public function from(string $url)
/**
* Visit the given URI with a GET request.
*
* @param string $uri
* @param array $headers
* @return \Illuminate\Foundation\Testing\TestResponse
* @param string $uri
* @param array $headers
* @return TestResponse
*/
public function get($uri, array $headers = [])
{
Expand All @@ -170,9 +170,9 @@ public function get($uri, array $headers = [])
/**
* Visit the given URI with a GET request, expecting a JSON response.
*
* @param string $uri
* @param array $headers
* @return \Illuminate\Foundation\Testing\TestResponse
* @param string $uri
* @param array $headers
* @return TestResponse
*/
public function getJson($uri, array $headers = [])
{
Expand All @@ -182,10 +182,10 @@ public function getJson($uri, array $headers = [])
/**
* Visit the given URI with a POST request.
*
* @param string $uri
* @param array $data
* @param array $headers
* @return \Illuminate\Foundation\Testing\TestResponse
* @param string $uri
* @param array $data
* @param array $headers
* @return TestResponse
*/
public function post($uri, array $data = [], array $headers = [])
{
Expand All @@ -197,10 +197,10 @@ public function post($uri, array $data = [], array $headers = [])
/**
* Visit the given URI with a POST request, expecting a JSON response.
*
* @param string $uri
* @param array $data
* @param array $headers
* @return \Illuminate\Foundation\Testing\TestResponse
* @param string $uri
* @param array $data
* @param array $headers
* @return TestResponse
*/
public function postJson($uri, array $data = [], array $headers = [])
{
Expand All @@ -210,10 +210,10 @@ public function postJson($uri, array $data = [], array $headers = [])
/**
* Visit the given URI with a PUT request.
*
* @param string $uri
* @param array $data
* @param array $headers
* @return \Illuminate\Foundation\Testing\TestResponse
* @param string $uri
* @param array $data
* @param array $headers
* @return TestResponse
*/
public function put($uri, array $data = [], array $headers = [])
{
Expand All @@ -225,10 +225,10 @@ public function put($uri, array $data = [], array $headers = [])
/**
* Visit the given URI with a PUT request, expecting a JSON response.
*
* @param string $uri
* @param array $data
* @param array $headers
* @return \Illuminate\Foundation\Testing\TestResponse
* @param string $uri
* @param array $data
* @param array $headers
* @return TestResponse
*/
public function putJson($uri, array $data = [], array $headers = [])
{
Expand All @@ -238,10 +238,10 @@ public function putJson($uri, array $data = [], array $headers = [])
/**
* Visit the given URI with a PATCH request.
*
* @param string $uri
* @param array $data
* @param array $headers
* @return \Illuminate\Foundation\Testing\TestResponse
* @param string $uri
* @param array $data
* @param array $headers
* @return TestResponse
*/
public function patch($uri, array $data = [], array $headers = [])
{
Expand All @@ -253,10 +253,10 @@ public function patch($uri, array $data = [], array $headers = [])
/**
* Visit the given URI with a PATCH request, expecting a JSON response.
*
* @param string $uri
* @param array $data
* @param array $headers
* @return \Illuminate\Foundation\Testing\TestResponse
* @param string $uri
* @param array $data
* @param array $headers
* @return TestResponse
*/
public function patchJson($uri, array $data = [], array $headers = [])
{
Expand All @@ -266,10 +266,10 @@ public function patchJson($uri, array $data = [], array $headers = [])
/**
* Visit the given URI with a DELETE request.
*
* @param string $uri
* @param array $data
* @param array $headers
* @return \Illuminate\Foundation\Testing\TestResponse
* @param string $uri
* @param array $data
* @param array $headers
* @return TestResponse
*/
public function delete($uri, array $data = [], array $headers = [])
{
Expand All @@ -281,10 +281,10 @@ public function delete($uri, array $data = [], array $headers = [])
/**
* Visit the given URI with a DELETE request, expecting a JSON response.
*
* @param string $uri
* @param array $data
* @param array $headers
* @return \Illuminate\Foundation\Testing\TestResponse
* @param string $uri
* @param array $data
* @param array $headers
* @return TestResponse
*/
public function deleteJson($uri, array $data = [], array $headers = [])
{
Expand All @@ -294,11 +294,11 @@ public function deleteJson($uri, array $data = [], array $headers = [])
/**
* Call the given URI with a JSON request.
*
* @param string $method
* @param string $uri
* @param array $data
* @param array $headers
* @return \Illuminate\Foundation\Testing\TestResponse
* @param string $method
* @param string $uri
* @param array $data
* @param array $headers
* @return TestResponse
*/
public function json($method, $uri, array $data = [], array $headers = [])
{
Expand Down Expand Up @@ -327,7 +327,7 @@ public function json($method, $uri, array $data = [], array $headers = [])
* @param array $files
* @param array $server
* @param string $content
* @return \Illuminate\Http\Response
* @return TestResponse
*/
public function call($method, $uri, $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
{
Expand All @@ -349,13 +349,13 @@ public function call($method, $uri, $parameters = [], $cookies = [], $files = []
/**
* Call the given HTTPS URI and return the Response.
*
* @param string $method
* @param string $uri
* @param array $parameters
* @param array $files
* @param array $server
* @param string $content
* @return \Illuminate\Http\Response
* @param string $method
* @param string $uri
* @param array $parameters
* @param array $files
* @param array $server
* @param string $content
* @return TestResponse
*/
public function callSecure($method, $uri, $parameters = [], $files = [], $server = [], $content = null)
{
Expand Down Expand Up @@ -459,8 +459,8 @@ protected function followRedirects($response)
/**
* Create the test response instance from the given response.
*
* @param \Illuminate\Http\Response $response
* @return \Illuminate\Foundation\Testing\TestResponse
* @param \Illuminate\Http\Response $response
* @return TestResponse
*/
protected function createTestResponse($response)
{
Expand Down

0 comments on commit 72132b6

Please sign in to comment.