We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f8e47 commit cde31edCopy full SHA for cde31ed
tests/CfdiUtilsTests/Certificado/CertificadoTest.php
@@ -64,6 +64,17 @@ public function testVerifyWithKnownData()
64
$this->assertTrue($verify);
65
}
66
67
+ public function testConstructUsingPemContents()
68
+ {
69
+ $pemfile = $this->utilAsset('certs/CSD01_AAA010101AAA.cer.pem');
70
+ $contents = file_get_contents($pemfile) ?: '';
71
+
72
+ $fromFile = new Certificado($pemfile);
73
+ $fromContents = new Certificado($contents);
74
75
+ $this->assertSame($fromFile->getPemContents(), $fromContents->getPemContents());
76
+ }
77
78
public function testVerifyWithInvalidData()
79
{
80
$dataFile = $this->utilAsset('certs/data-to-sign.txt');
0 commit comments