getPin() публичный Метод

By Kevin McArthur of StormTide Digital Studios Inc.
public getPin ( ) : string
Результат string
Пример #1
0
 public function testConsructorSupoprtsMultipleInputTypesAndCanGenerateProperKeyPin()
 {
     $certPath = __DIR__ . '/_files/mxr.mozilla.org.pem';
     $certString = file_get_contents($certPath);
     $certResource = openssl_x509_read($certString);
     $expectedPin = '47cac6d8f2c2363675e6f433970f27523824d0ec';
     $cert = new X509Certificate($certPath);
     $this->assertSame($cert->getPin(), $expectedPin);
     $cert = new X509Certificate($certString);
     $this->assertSame($cert->getPin(), $expectedPin);
     $cert = new X509Certificate($certResource);
     $this->assertSame($cert->getPin(), $expectedPin);
 }