Scheb\TwoFactorBundle\Tests\Security\TwoFactor\RendererTest::render_returnResponse PHP Method

render_returnResponse() public method

    public function render_returnResponse()
    {
        $response = $this->createMock('Symfony\\Component\\HttpFoundation\\Response');
        $templating = $this->createMock('Symfony\\Bundle\\FrameworkBundle\\Templating\\EngineInterface');
        $templating->expects($this->any())->method('renderResponse')->willReturn($response);
        $context = $this->createMock('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\AuthenticationContextInterface');
        $renderer = new Renderer($templating, 'AcmeTestBundle:Test:auth.html.twig');
        $this->assertEquals($response, $renderer->render($context));
    }