Exemplo n.º 1
0
 public function testMultipleComponentsInDistinguishedName()
 {
     if (PHP_VERSION <= '5.4.0') {
         $this->markTestSkipped('Works only with PHP >= 5.4');
     } else {
         $certParser = CertParser::fromPemFile(self::getFilePath('2-multi.pem'));
         $this->assertSame('C=DE, ST=Berlin, L=Berlin, O=FooBar Inc, OU=Testing Multi, OU=Foo, CN=multi.foobar.tld, emailAddress=baz@foobar.tld', $certParser->getSubject());
     }
 }