@@ -54,11 +54,11 @@ public function setUp(): void
5454 $ this ->testedClass = CustomSignable::class;
5555
5656 $ this ->xmlRepresentation = DOMDocumentFactory::fromFile (
57- dirname (dirname ( __FILE__ ) ) . '/resources/xml/custom_CustomSignable.xml ' ,
57+ dirname (__FILE__ , 2 ) . '/resources/xml/custom_CustomSignable.xml ' ,
5858 );
5959
6060 $ this ->signed = DOMDocumentFactory::fromFile (
61- dirname (dirname ( __FILE__ ) ) . '/resources/xml/custom_CustomSignableSigned.xml ' ,
61+ dirname (__FILE__ , 2 ) . '/resources/xml/custom_CustomSignableSigned.xml ' ,
6262 );
6363
6464 $ certificate = PEMCertificatesMock::loadPlainCertificateFile (PEMCertificatesMock::SELFSIGNED_CERTIFICATE );
@@ -124,7 +124,7 @@ public function testSigningElement(): void
124124
125125 $ customSignable ->sign ($ signer , C::C14N_EXCLUSIVE_WITHOUT_COMMENTS , $ keyInfo );
126126 $ signed = DOMDocumentFactory::fromFile (
127- dirname (dirname ( __FILE__ ) ) . '/resources/xml/custom_CustomSignableSignedWithId.xml ' ,
127+ dirname (__FILE__ , 2 ) . '/resources/xml/custom_CustomSignableSignedWithId.xml ' ,
128128 );
129129
130130 $ this ->assertEquals (
@@ -160,7 +160,7 @@ public function testSigningDocumentWithComments(): void
160160
161161 $ customSignable ->sign ($ signer , C::C14N_EXCLUSIVE_WITH_COMMENTS , $ keyInfo );
162162 $ signed = DOMDocumentFactory::fromFile (
163- dirname (dirname ( __FILE__ ) ) . '/resources/xml/custom_CustomSignableSignedWithComments.xml ' ,
163+ dirname (__FILE__ , 2 ) . '/resources/xml/custom_CustomSignableSignedWithComments.xml ' ,
164164 );
165165
166166 $ this ->assertEquals (
@@ -196,7 +196,7 @@ public function testSigningElementWithIdAndComments(): void
196196
197197 $ customSignable ->sign ($ signer , C::C14N_EXCLUSIVE_WITH_COMMENTS , $ keyInfo );
198198 $ signed = DOMDocumentFactory::fromFile (
199- dirname (dirname ( __FILE__ ) ) . '/resources/xml/custom_CustomSignableSignedWithCommentsAndId.xml '
199+ dirname (__FILE__ , 2 ) . '/resources/xml/custom_CustomSignableSignedWithCommentsAndId.xml '
200200 );
201201
202202 $ this ->assertEquals (
0 commit comments