ImboUnitTest\EventListener\AuthenticateTest::testThrowsExceptionWhenSignatureDoesNotMatch PHP Method

testThrowsExceptionWhenSignatureDoesNotMatch() public method

    public function testThrowsExceptionWhenSignatureDoesNotMatch()
    {
        $this->headers->expects($this->at(0))->method('has')->with('x-imbo-authenticate-timestamp')->will($this->returnValue(true));
        $this->headers->expects($this->at(1))->method('has')->with('x-imbo-authenticate-signature')->will($this->returnValue(true));
        $this->headers->expects($this->at(2))->method('get')->with('x-imbo-authenticate-timestamp')->will($this->returnValue(gmdate('Y-m-d\\TH:i:s\\Z')));
        $this->headers->expects($this->at(3))->method('get')->with('x-imbo-authenticate-signature')->will($this->returnValue('foobar'));
        $this->listener->authenticate($this->event);
    }