Ejemplo n.º 1
0
 /**
  * @test
  *
  * @covers Lcobucci\JWT\Signer\Ecdsa\Sha256::getAlgorithm
  */
 public function getAlgorithmMustBeCorrect()
 {
     $signer = new Sha256();
     $this->assertEquals(OPENSSL_ALGO_SHA256, $signer->getAlgorithm());
 }
Ejemplo n.º 2
0
 /**
  * @test
  *
  * @covers \Lcobucci\JWT\Signer\Hmac\Sha256::getAlgorithm
  */
 public function getAlgorithmMustBeCorrect()
 {
     $signer = new Sha256();
     self::assertEquals('sha256', $signer->getAlgorithm());
 }