mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Incorporate https://github.com/thephpleague/oauth2-server/pull/731. Thanks.
Now can handle cr/lf, cr, and lf endings. And on php5 large keys as well.
This commit is contained in:
@@ -22,7 +22,7 @@ class CryptKeyTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals('file://' . $keyFile, $key->getKeyPath());
|
||||
$this->assertEquals('secret', $key->getPassPhrase());
|
||||
|
||||
$keyFile = __DIR__ . '/Stubs/public.key.crlf';
|
||||
$keyFile = __DIR__ . '/Stubs/private.key.crlf';
|
||||
$key = new CryptKey($keyFile, 'secret');
|
||||
|
||||
$this->assertEquals('file://' . $keyFile, $key->getKeyPath());
|
||||
|
||||
Reference in New Issue
Block a user