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

testFilePathKeyThrowsException() public method

    public function testFilePathKeyThrowsException()
    {
        if (defined('HHVM_VERSION')) {
            // in HHVM, openssl_pkey_get_(public|private) throws an error when
            // passed a file path that cannot be found
            $this->expectException('PHPUnit_Framework_Error');
        } else {
            $this->expectException(\RuntimeException::class);
        }
        $this->signer->sign('aaa', $this->badPrivateKeyFilePath);
    }