lithium\tests\cases\storage\session\strategy\HmacTest::testReadWithNoSignature PHP Method

testReadWithNoSignature() public method

    public function testReadWithNoSignature()
    {
        $class = $this->mock;
        $value = 'data_read';
        $hmac = $this->Hmac;
        $expected = '/HMAC signature not found./';
        $this->assertException($expected, function () use($hmac, $value, $class) {
            $hmac->read($value, compact('class'));
        });
    }