芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/joolsmen.com/vendor/lcobucci/jwt/test/unit/Signer/KeychainTest.php
* @since 2.1.0 */ class KeychainTest extends \PHPUnit\Framework\TestCase { /** * @test * * @uses Lcobucci\JWT\Signer\Key * * @covers Lcobucci\JWT\Signer\Keychain::getPrivateKey */ public function getPrivateKeyShouldReturnAKey() { $keychain = new Keychain(); $key = $keychain->getPrivateKey('testing', 'test'); $this->assertInstanceOf(Key::class, $key); $this->assertAttributeEquals('testing', 'content', $key); $this->assertAttributeEquals('test', 'passphrase', $key); } /** * @test * * @uses Lcobucci\JWT\Signer\Key * * @covers Lcobucci\JWT\Signer\Keychain::getPublicKey */ public function getPublicKeyShouldReturnAValidResource() { $keychain = new Keychain(); $key = $keychain->getPublicKey('testing'); $this->assertInstanceOf(Key::class, $key); $this->assertAttributeEquals('testing', 'content', $key); $this->assertAttributeEquals(null, 'passphrase', $key); } }