ImboUnitTest\EventListener\AccessTokenTest::setUp PHP Method

setUp() public method

Set up the listener
public setUp ( )
    public function setUp()
    {
        $this->query = $this->getMock('Symfony\\Component\\HttpFoundation\\ParameterBag');
        $this->accessControl = $this->getMock('Imbo\\Auth\\AccessControl\\Adapter\\AdapterInterface');
        $this->request = $this->getMock('Imbo\\Http\\Request\\Request');
        $this->request->query = $this->query;
        $this->responseHeaders = $this->getMock('Symfony\\Component\\HttpFoundation\\ResponseHeaderBag');
        $this->response = $this->getMock('Imbo\\Http\\Response\\Response');
        $this->response->headers = $this->responseHeaders;
        $this->event = $this->getEventMock();
        $this->listener = new AccessToken();
    }