protected function RequestDataCollectorTest::createRequest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/DataCollector/RequestDataCollectorTest.php \Symfony\Component\HttpKernel\Tests\DataCollector\RequestDataCollectorTest::createRequest()
2 calls to RequestDataCollectorTest::createRequest()
- RequestDataCollectorTest::testCollect in vendor/
symfony/ http-kernel/ Tests/ DataCollector/ RequestDataCollectorTest.php - RequestDataCollectorTest::testControllerInspection in vendor/
symfony/ http-kernel/ Tests/ DataCollector/ RequestDataCollectorTest.php - Test various types of controller callables.
File
- vendor/
symfony/ http-kernel/ Tests/ DataCollector/ RequestDataCollectorTest.php, line 159
Class
Namespace
Symfony\Component\HttpKernel\Tests\DataCollectorCode
protected function createRequest() {
$request = Request::create('http://test.com/foo?bar=baz');
$request->attributes
->set('foo', 'bar');
$request->attributes
->set('_route', 'foobar');
$request->attributes
->set('_route_params', array(
'name' => 'foo',
));
$request->attributes
->set('resource', fopen(__FILE__, 'r'));
$request->attributes
->set('object', new \stdClass());
return $request;
}