added missing return types

This commit is contained in:
Adrian Nürnberger
2020-06-19 20:51:27 +02:00
parent 75f7ee0acf
commit 5be1edd7b7
3 changed files with 16 additions and 0 deletions

View File

@ -129,12 +129,21 @@ trait TestCase
/**
* Runs the test.
*
* @return mixed
*
* @throws \Throwable
*/
public function __test()
{
return $this->__callClosure($this->__test, func_get_args());
}
/**
* @return mixed
*
* @throws \Throwable
*/
private function __callClosure(Closure $closure, array $arguments)
{
return ExceptionTrace::ensure(function () use ($closure, $arguments) {

View File

@ -132,6 +132,9 @@ final class TestCaseFactory
$proxies = $this->proxies;
$factoryTest = $this->test;
/**
* @return mixed
*/
$test = function () use ($chains, $proxies, $factoryTest) {
$proxies->proxy($this);
$chains->chain($this);

View File

@ -17,6 +17,10 @@ final class ExceptionTrace
/**
* Ensures the given closure reports
* the good execution context.
*
* @return mixed
*
* @throws \Throwable
*/
public static function ensure(Closure $closure)
{