예제 #1
0
 /**
  * @test
  */
 public function shouldPopulateFromMasterRequestIgnoringSubRequestsOnStack()
 {
     $stack = new RequestStack();
     $stack->push(Request::create('http://request.uri', 'GET', ['foo' => 'fooVal']));
     $stack->push(Request::create('http://another.request.uri', 'POST'));
     $action = new GetHttpRequestAction();
     $action->setHttpRequestStack($stack);
     $request = new GetHttpRequest();
     $action->execute($request);
     self::assertSame('GET', $request->method);
 }