Namshi\JOSE\Test\OpenSSL\Signer\KeyFormatTest::testResourceKeyWorksProperly PHP Method

testResourceKeyWorksProperly() public method

    public function testResourceKeyWorksProperly()
    {
        $encrypted = $this->signer->sign('aaa', $this->privateKeyResource);
        $this->assertInternalType('bool', $this->signer->verify($this->publicKeyResource, $encrypted, 'aaa'));
        $this->assertTrue($this->signer->verify($this->publicKeyResource, $encrypted, 'aaa'));
    }