ImboUnitTest\EventListener\VarnishHashTwoTest::setUp PHP Method

setUp() public method

Set up the listener
public setUp ( )
    public function setUp()
    {
        $this->request = $this->getMock('Imbo\\Http\\Request\\Request');
        $this->responseHeaders = $this->getMock('Symfony\\Component\\HttpFoundation\\ResponseHeaderBag');
        $this->response = $this->getMock('Imbo\\Http\\Response\\Response');
        $this->response->headers = $this->responseHeaders;
        $this->event = $this->getMock('Imbo\\EventManager\\Event');
        $this->event->expects($this->any())->method('getRequest')->will($this->returnValue($this->request));
        $this->event->expects($this->any())->method('getResponse')->will($this->returnValue($this->response));
        $this->listener = new VarnishHashTwo();
    }