ImboUnitTest\EventListener\AuthenticateTest::testThrowsExceptionWhenTimestampHasExpired PHP Method

testThrowsExceptionWhenTimestampHasExpired() public method

    public function testThrowsExceptionWhenTimestampHasExpired()
    {
        $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('2010-10-10T20:10:10Z'));
        $this->listener->authenticate($this->event);
    }