public function makeRequest($config = []) { $request = $this->get('request'); foreach ($config as $name => $value) { $request->{$name} = $value; } return $request; }
public function __construct(\PHPUnit_Framework_TestCase $phpunit, Application $app) { $this->phpunit = $phpunit; $this->app = $app; $this->request = $app->makeRequest(); }