ImboUnitTest\Http\Response\ResponseFormatterTest::testDoesNotSetResponseContentWhenHttpMethodIsHead PHP Method

testDoesNotSetResponseContentWhenHttpMethodIsHead() public method

    public function testDoesNotSetResponseContentWhenHttpMethodIsHead()
    {
        $this->response->expects($this->once())->method('getStatusCode')->will($this->returnValue(200));
        $this->response->expects($this->once())->method('getModel')->will($this->returnValue($this->getMock('Imbo\\Model\\Stats')));
        $this->response->expects($this->never())->method('setContent');
        $this->request->expects($this->once())->method('getMethod')->will($this->returnValue('HEAD'));
        $this->responseFormatter->format($this->event);
    }