public function setup() { parent::setup(); $this->privateKey = file_get_contents(SSL_KEYS_PATH . 'private.key'); $this->public = file_get_contents(SSL_KEYS_PATH . 'public.key'); $this->password = '******'; $this->signer = new RS384(); }
public function setup() { parent::setup(); // https://github.com/sebastianbergmann/phpunit/issues/1356 if (defined('HHVM_VERSION')) { $this->markTestSkipped(); } $this->privateKey = openssl_pkey_get_private(SSL_KEYS_PATH . 'private.es256.key'); $this->public = openssl_pkey_get_public(SSL_KEYS_PATH . 'public.es256.key'); $this->signer = new ES256(); }