You are here

protected function FragmentHandlerTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/Fragment/FragmentHandlerTest.php \Symfony\Component\HttpKernel\Tests\Fragment\FragmentHandlerTest::setUp()

File

vendor/symfony/http-kernel/Tests/Fragment/FragmentHandlerTest.php, line 22

Class

FragmentHandlerTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

Code

protected function setUp() {
  $this->requestStack = $this
    ->getMockBuilder('Symfony\\Component\\HttpFoundation\\RequestStack')
    ->disableOriginalConstructor()
    ->getMock();
  $this->requestStack
    ->expects($this
    ->any())
    ->method('getCurrentRequest')
    ->will($this
    ->returnValue(Request::create('/')));
}