This commit is contained in:
Pierre Rudloff 2017-04-26 00:10:00 +02:00
parent db5f653e2d
commit 4d104c852f
2 changed files with 14 additions and 13 deletions

View file

@ -84,7 +84,7 @@ class FrontControllerTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* Run controller function with custom query parameters and return the result * Run controller function with custom query parameters and return the result.
* *
* @param string $request Controller function to call * @param string $request Controller function to call
* @param array $params Query parameters * @param array $params Query parameters
@ -99,6 +99,7 @@ class FrontControllerTest extends \PHPUnit_Framework_TestCase
} else { } else {
$controller = $this->controller; $controller = $this->controller;
} }
return $controller->$request( return $controller->$request(
$this->request->withQueryParams($params), $this->request->withQueryParams($params),
$this->response $this->response
@ -106,7 +107,7 @@ class FrontControllerTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* Assert that calling controller function with these parameters returns a 200 HTTP response * Assert that calling controller function with these parameters returns a 200 HTTP response.
* *
* @param string $request Controller function to call * @param string $request Controller function to call
* @param array $params Query parameters * @param array $params Query parameters
@ -120,7 +121,7 @@ class FrontControllerTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* Assert that calling controller function with these parameters returns an HTTP redirect * Assert that calling controller function with these parameters returns an HTTP redirect.
* *
* @param string $request Controller function to call * @param string $request Controller function to call
* @param array $params Query parameters * @param array $params Query parameters
@ -134,7 +135,7 @@ class FrontControllerTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* Assert that calling controller function with these parameters returns an HTTP redirect * Assert that calling controller function with these parameters returns an HTTP redirect.
* *
* @param string $request Controller function to call * @param string $request Controller function to call
* @param array $params Query parameters * @param array $params Query parameters

View file

@ -399,7 +399,7 @@ class VideoDownloadTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* Assert that a stream is valid * Assert that a stream is valid.
* *
* @param resource $stream Stream * @param resource $stream Stream
* *