KnpU\OAuth2ClientBundle\Tests\Client\OAuth2ClientTest::setup PHP Method

setup() public method

public setup ( )
    public function setup()
    {
        $this->requestStack = new RequestStack();
        $this->session = $this->prophesize('Symfony\\Component\\HttpFoundation\\Session\\SessionInterface');
        $this->provider = $this->prophesize('League\\OAuth2\\Client\\Provider\\AbstractProvider');
        $this->request = new Request();
        $this->request->setSession($this->session->reveal());
        $this->requestStack->push($this->request);
    }